Skip to content

Commit

Permalink
Merge pull request #8 from argotdev/speakeasy-sdk-regen-1729776058
Browse files Browse the repository at this point in the history
chore: 🐝 Update SDK - Generate 0.0.5
  • Loading branch information
ajtatey authored Oct 24, 2024
2 parents 4132d15 + 4b83216 commit bad5a56
Show file tree
Hide file tree
Showing 16 changed files with 27 additions and 57 deletions.
8 changes: 4 additions & 4 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
lockVersion: 2.0.0
id: 61a4ac00-e7ed-4a10-9e0f-47f8aef9702c
management:
docChecksum: d96ad338ba3c4b1901b5d92a729b63d9
docChecksum: c58ce1a8f4761676d0ec62b40ce3b5af
docVersion: 2.3.0
speakeasyVersion: 1.419.2
speakeasyVersion: 1.421.1
generationVersion: 2.438.15
releaseVersion: 0.0.4
configChecksum: bcf34b7256bf00bee4ddd1dba527c05d
releaseVersion: 0.0.5
configChecksum: 20495d52a63fb99b59bfcbbc62b92c6b
repoURL: https://github.com/argotdev/speakeasy-sdk.git
installationURL: https://github.com/argotdev/speakeasy-sdk
published: true
Expand Down
2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ generation:
auth:
oAuth2ClientCredentialsEnabled: false
typescript:
version: 0.0.4
version: 0.0.5
additionalDependencies:
dependencies: {}
devDependencies: {}
Expand Down
10 changes: 5 additions & 5 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
speakeasyVersion: 1.419.2
speakeasyVersion: 1.421.1
sources:
ArgotOpenAi-OAS:
sourceNamespace: argot-open-ai-oas
sourceRevisionDigest: sha256:a14f67eb2cabf63f73303b532aa095227bb699b17889ac14e3c5c00ffe2122dc
sourceBlobDigest: sha256:bbab06460b3d531ea46c3b4e1c4b378dc258d69d352cb96aa91c6ab7f0427c5f
sourceRevisionDigest: sha256:57762a25bf2b9db92394f493016221caac15a961a8b0d0daf781fbf169cf11de
sourceBlobDigest: sha256:1ac004496342b737f8cbb62c2de296ce98c3851f1082d3b6d73d7f312b6d247e
tags:
- latest
- main
targets:
argot-open-ai:
source: ArgotOpenAi-OAS
sourceNamespace: argot-open-ai-oas
sourceRevisionDigest: sha256:a14f67eb2cabf63f73303b532aa095227bb699b17889ac14e3c5c00ffe2122dc
sourceBlobDigest: sha256:bbab06460b3d531ea46c3b4e1c4b378dc258d69d352cb96aa91c6ab7f0427c5f
sourceRevisionDigest: sha256:57762a25bf2b9db92394f493016221caac15a961a8b0d0daf781fbf169cf11de
sourceBlobDigest: sha256:1ac004496342b737f8cbb62c2de296ce98c3851f1082d3b6d73d7f312b6d247e
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,14 @@ Based on:
### Generated
- [typescript v0.0.4] .
### Releases
- [NPM v0.0.4] https://www.npmjs.com/package/argot-open-ai/v/0.0.4 - .
- [NPM v0.0.4] https://www.npmjs.com/package/argot-open-ai/v/0.0.4 - .

## 2024-10-24 13:20:55
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.421.1 (2.438.15) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v0.0.5] .
### Releases
- [NPM v0.0.5] https://www.npmjs.com/package/argot-open-ai/v/0.0.5 - .
1 change: 0 additions & 1 deletion docs/models/components/createchatcompletionrequest.md

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion docs/models/components/createrunrequest.md

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion docs/models/components/createthreadandrunrequest.md

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion docs/models/components/runobject.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion jsr.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

{
"name": "argot-open-ai",
"version": "0.0.4",
"version": "0.0.5",
"exports": {
".": "./src/index.ts",
"./models/errors": "./src/models/errors/index.ts",
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "argot-open-ai",
"version": "0.0.4",
"version": "0.0.5",
"author": "Speakeasy",
"main": "./index.js",
"sideEffects": false,
Expand Down
4 changes: 2 additions & 2 deletions src/lib/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
export const SDK_METADATA = {
language: "typescript",
openapiDocVersion: "2.3.0",
sdkVersion: "0.0.4",
sdkVersion: "0.0.5",
genVersion: "2.438.15",
userAgent: "speakeasy-sdk/typescript 0.0.4 2.438.15 2.3.0 argot-open-ai",
userAgent: "speakeasy-sdk/typescript 0.0.5 2.438.15 2.3.0 argot-open-ai",
} as const;
9 changes: 0 additions & 9 deletions src/models/components/createchatcompletionrequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -332,10 +332,6 @@ export type CreateChatCompletionRequest = {
* `none` is the default when no tools are present. `auto` is the default if tools are present.
*/
toolChoice?: ChatCompletionToolChoiceOption | undefined;
/**
* Whether to enable [parallel function calling](/docs/guides/function-calling/parallel-function-calling) during tool use.
*/
parallelToolCalls?: boolean | undefined;
/**
* A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](/docs/guides/safety-best-practices/end-user-ids).
*
Expand Down Expand Up @@ -590,7 +586,6 @@ export const CreateChatCompletionRequest$inboundSchema: z.ZodType<
top_p: z.nullable(z.number().default(1)),
tools: z.array(ChatCompletionTool$inboundSchema).optional(),
tool_choice: ChatCompletionToolChoiceOption$inboundSchema.optional(),
parallel_tool_calls: z.boolean().default(true),
user: z.string().optional(),
function_call: z.union([
ChatCompletionFunctionCallOption$inboundSchema,
Expand All @@ -610,7 +605,6 @@ export const CreateChatCompletionRequest$inboundSchema: z.ZodType<
"stream_options": "streamOptions",
"top_p": "topP",
"tool_choice": "toolChoice",
"parallel_tool_calls": "parallelToolCalls",
"function_call": "functionCall",
});
});
Expand Down Expand Up @@ -641,7 +635,6 @@ export type CreateChatCompletionRequest$Outbound = {
top_p: number | null;
tools?: Array<ChatCompletionTool$Outbound> | undefined;
tool_choice?: ChatCompletionToolChoiceOption$Outbound | undefined;
parallel_tool_calls: boolean;
user?: string | undefined;
function_call?:
| ChatCompletionFunctionCallOption$Outbound
Expand Down Expand Up @@ -681,7 +674,6 @@ export const CreateChatCompletionRequest$outboundSchema: z.ZodType<
topP: z.nullable(z.number().default(1)),
tools: z.array(ChatCompletionTool$outboundSchema).optional(),
toolChoice: ChatCompletionToolChoiceOption$outboundSchema.optional(),
parallelToolCalls: z.boolean().default(true),
user: z.string().optional(),
functionCall: z.union([
ChatCompletionFunctionCallOption$outboundSchema,
Expand All @@ -701,7 +693,6 @@ export const CreateChatCompletionRequest$outboundSchema: z.ZodType<
streamOptions: "stream_options",
topP: "top_p",
toolChoice: "tool_choice",
parallelToolCalls: "parallel_tool_calls",
functionCall: "function_call",
});
});
Expand Down
9 changes: 0 additions & 9 deletions src/models/components/createrunrequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,10 +174,6 @@ export type CreateRunRequest = {
* Specifying a particular tool like `{"type": "file_search"}` or `{"type": "function", "function": {"name": "my_function"}}` forces the model to call that tool.
*/
toolChoice?: AssistantsApiToolChoiceOption | undefined;
/**
* Whether to enable [parallel function calling](/docs/guides/function-calling/parallel-function-calling) during tool use.
*/
parallelToolCalls?: boolean | undefined;
/**
* Specifies the format that the model must output. Compatible with [GPT-4o](/docs/models/gpt-4o), [GPT-4 Turbo](/docs/models/gpt-4-turbo-and-gpt-4), and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.
*
Expand Down Expand Up @@ -345,7 +341,6 @@ export const CreateRunRequest$inboundSchema: z.ZodType<
max_completion_tokens: z.nullable(z.number().int()).optional(),
truncation_strategy: TruncationObject$inboundSchema.optional(),
tool_choice: AssistantsApiToolChoiceOption$inboundSchema.optional(),
parallel_tool_calls: z.boolean().default(true),
response_format: AssistantsApiResponseFormatOption$inboundSchema.optional(),
}).transform((v) => {
return remap$(v, {
Expand All @@ -357,7 +352,6 @@ export const CreateRunRequest$inboundSchema: z.ZodType<
"max_completion_tokens": "maxCompletionTokens",
"truncation_strategy": "truncationStrategy",
"tool_choice": "toolChoice",
"parallel_tool_calls": "parallelToolCalls",
"response_format": "responseFormat",
});
});
Expand Down Expand Up @@ -385,7 +379,6 @@ export type CreateRunRequest$Outbound = {
max_completion_tokens?: number | null | undefined;
truncation_strategy?: TruncationObject$Outbound | undefined;
tool_choice?: AssistantsApiToolChoiceOption$Outbound | undefined;
parallel_tool_calls: boolean;
response_format?: AssistantsApiResponseFormatOption$Outbound | undefined;
};

Expand Down Expand Up @@ -421,7 +414,6 @@ export const CreateRunRequest$outboundSchema: z.ZodType<
maxCompletionTokens: z.nullable(z.number().int()).optional(),
truncationStrategy: TruncationObject$outboundSchema.optional(),
toolChoice: AssistantsApiToolChoiceOption$outboundSchema.optional(),
parallelToolCalls: z.boolean().default(true),
responseFormat: AssistantsApiResponseFormatOption$outboundSchema.optional(),
}).transform((v) => {
return remap$(v, {
Expand All @@ -433,7 +425,6 @@ export const CreateRunRequest$outboundSchema: z.ZodType<
maxCompletionTokens: "max_completion_tokens",
truncationStrategy: "truncation_strategy",
toolChoice: "tool_choice",
parallelToolCalls: "parallel_tool_calls",
responseFormat: "response_format",
});
});
Expand Down
9 changes: 0 additions & 9 deletions src/models/components/createthreadandrunrequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,10 +205,6 @@ export type CreateThreadAndRunRequest = {
* Specifying a particular tool like `{"type": "file_search"}` or `{"type": "function", "function": {"name": "my_function"}}` forces the model to call that tool.
*/
toolChoice?: AssistantsApiToolChoiceOption | undefined;
/**
* Whether to enable [parallel function calling](/docs/guides/function-calling/parallel-function-calling) during tool use.
*/
parallelToolCalls?: boolean | undefined;
/**
* Specifies the format that the model must output. Compatible with [GPT-4o](/docs/models/gpt-4o), [GPT-4 Turbo](/docs/models/gpt-4-turbo-and-gpt-4), and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.
*
Expand Down Expand Up @@ -531,7 +527,6 @@ export const CreateThreadAndRunRequest$inboundSchema: z.ZodType<
max_completion_tokens: z.nullable(z.number().int()).optional(),
truncation_strategy: TruncationObject$inboundSchema.optional(),
tool_choice: AssistantsApiToolChoiceOption$inboundSchema.optional(),
parallel_tool_calls: z.boolean().default(true),
response_format: AssistantsApiResponseFormatOption$inboundSchema.optional(),
}).transform((v) => {
return remap$(v, {
Expand All @@ -542,7 +537,6 @@ export const CreateThreadAndRunRequest$inboundSchema: z.ZodType<
"max_completion_tokens": "maxCompletionTokens",
"truncation_strategy": "truncationStrategy",
"tool_choice": "toolChoice",
"parallel_tool_calls": "parallelToolCalls",
"response_format": "responseFormat",
});
});
Expand Down Expand Up @@ -573,7 +567,6 @@ export type CreateThreadAndRunRequest$Outbound = {
max_completion_tokens?: number | null | undefined;
truncation_strategy?: TruncationObject$Outbound | undefined;
tool_choice?: AssistantsApiToolChoiceOption$Outbound | undefined;
parallel_tool_calls: boolean;
response_format?: AssistantsApiResponseFormatOption$Outbound | undefined;
};

Expand Down Expand Up @@ -611,7 +604,6 @@ export const CreateThreadAndRunRequest$outboundSchema: z.ZodType<
maxCompletionTokens: z.nullable(z.number().int()).optional(),
truncationStrategy: TruncationObject$outboundSchema.optional(),
toolChoice: AssistantsApiToolChoiceOption$outboundSchema.optional(),
parallelToolCalls: z.boolean().default(true),
responseFormat: AssistantsApiResponseFormatOption$outboundSchema.optional(),
}).transform((v) => {
return remap$(v, {
Expand All @@ -622,7 +614,6 @@ export const CreateThreadAndRunRequest$outboundSchema: z.ZodType<
maxCompletionTokens: "max_completion_tokens",
truncationStrategy: "truncation_strategy",
toolChoice: "tool_choice",
parallelToolCalls: "parallel_tool_calls",
responseFormat: "response_format",
});
});
Expand Down
9 changes: 0 additions & 9 deletions src/models/components/runobject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -298,10 +298,6 @@ export type RunObject = {
* Specifying a particular tool like `{"type": "file_search"}` or `{"type": "function", "function": {"name": "my_function"}}` forces the model to call that tool.
*/
toolChoice: AssistantsApiToolChoiceOption;
/**
* Whether to enable [parallel function calling](/docs/guides/function-calling/parallel-function-calling) during tool use.
*/
parallelToolCalls?: boolean | undefined;
/**
* Specifies the format that the model must output. Compatible with [GPT-4o](/docs/models/gpt-4o), [GPT-4 Turbo](/docs/models/gpt-4-turbo-and-gpt-4), and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.
*
Expand Down Expand Up @@ -696,7 +692,6 @@ export const RunObject$inboundSchema: z.ZodType<
max_completion_tokens: z.nullable(z.number().int()),
truncation_strategy: TruncationObject$inboundSchema,
tool_choice: AssistantsApiToolChoiceOption$inboundSchema,
parallel_tool_calls: z.boolean().default(true),
response_format: AssistantsApiResponseFormatOption$inboundSchema,
}).transform((v) => {
return remap$(v, {
Expand All @@ -716,7 +711,6 @@ export const RunObject$inboundSchema: z.ZodType<
"max_completion_tokens": "maxCompletionTokens",
"truncation_strategy": "truncationStrategy",
"tool_choice": "toolChoice",
"parallel_tool_calls": "parallelToolCalls",
"response_format": "responseFormat",
});
});
Expand Down Expand Up @@ -752,7 +746,6 @@ export type RunObject$Outbound = {
max_completion_tokens: number | null;
truncation_strategy: TruncationObject$Outbound;
tool_choice: AssistantsApiToolChoiceOption$Outbound;
parallel_tool_calls: boolean;
response_format: AssistantsApiResponseFormatOption$Outbound;
};

Expand Down Expand Up @@ -795,7 +788,6 @@ export const RunObject$outboundSchema: z.ZodType<
maxCompletionTokens: z.nullable(z.number().int()),
truncationStrategy: TruncationObject$outboundSchema,
toolChoice: AssistantsApiToolChoiceOption$outboundSchema,
parallelToolCalls: z.boolean().default(true),
responseFormat: AssistantsApiResponseFormatOption$outboundSchema,
}).transform((v) => {
return remap$(v, {
Expand All @@ -815,7 +807,6 @@ export const RunObject$outboundSchema: z.ZodType<
maxCompletionTokens: "max_completion_tokens",
truncationStrategy: "truncation_strategy",
toolChoice: "tool_choice",
parallelToolCalls: "parallel_tool_calls",
responseFormat: "response_format",
});
});
Expand Down

0 comments on commit bad5a56

Please sign in to comment.