Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.424.0
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot committed Nov 2, 2024
1 parent 9c9b070 commit b163cf9
Show file tree
Hide file tree
Showing 17 changed files with 90 additions and 30 deletions.
10 changes: 5 additions & 5 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: c58ce1a8f4761676d0ec62b40ce3b5af
docChecksum: e1f306b5ba0a01e1785143532d301bf4
docVersion: 2.3.0
speakeasyVersion: 1.421.1
generationVersion: 2.438.15
releaseVersion: 0.0.5
configChecksum: 20495d52a63fb99b59bfcbbc62b92c6b
speakeasyVersion: 1.424.0
generationVersion: 2.445.1
releaseVersion: 0.0.6
configChecksum: 6899ea3f5d44758ad125d6d3e87ff88a
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.5
version: 0.0.6
additionalDependencies:
dependencies: {}
devDependencies: {}
Expand Down
16 changes: 11 additions & 5 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
speakeasyVersion: 1.421.1
speakeasyVersion: 1.424.0
sources:
ArgotOpenAi-OAS:
sourceNamespace: argot-open-ai-oas
sourceRevisionDigest: sha256:57762a25bf2b9db92394f493016221caac15a961a8b0d0daf781fbf169cf11de
sourceBlobDigest: sha256:1ac004496342b737f8cbb62c2de296ce98c3851f1082d3b6d73d7f312b6d247e
sourceRevisionDigest: sha256:d5ba6a9cf704bf6170304c0d84b39c78b6c3593b5ab7db988fa92f6df29fd1ee
sourceBlobDigest: sha256:b193e761cc90c24efd48cf5b9df6b79847ec23607874efad1099c70458ddf6ce
tags:
- latest
- main
targets:
argot-open-ai:
source: ArgotOpenAi-OAS
sourceNamespace: argot-open-ai-oas
sourceRevisionDigest: sha256:57762a25bf2b9db92394f493016221caac15a961a8b0d0daf781fbf169cf11de
sourceBlobDigest: sha256:1ac004496342b737f8cbb62c2de296ce98c3851f1082d3b6d73d7f312b6d247e
sourceRevisionDigest: sha256:d5ba6a9cf704bf6170304c0d84b39c78b6c3593b5ab7db988fa92f6df29fd1ee
sourceBlobDigest: sha256:b193e761cc90c24efd48cf5b9df6b79847ec23607874efad1099c70458ddf6ce
codeSamplesNamespace: argot-open-ai-oas-code-samples
codeSamplesRevisionDigest: sha256:201bfe87759dcab1ccd2e83e6c2305beab74b738ff266200789b2fbf0876df87
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand All @@ -29,3 +31,7 @@ workflow:
publish:
npm:
token: $npm_token
codeSamples:
registry:
location: registry.speakeasyapi.dev/argot/argot/argot-open-ai-oas-code-samples
blocking: false
26 changes: 15 additions & 11 deletions .speakeasy/workflow.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
workflowVersion: 1.0.0
speakeasyVersion: latest
sources:
ArgotOpenAi-OAS:
inputs:
- location: openai-openapi.yaml
registry:
location: registry.speakeasyapi.dev/argot/argot/argot-open-ai-oas
ArgotOpenAi-OAS:
inputs:
- location: openai-openapi.yaml
registry:
location: registry.speakeasyapi.dev/argot/argot/argot-open-ai-oas
targets:
argot-open-ai:
target: typescript
source: ArgotOpenAi-OAS
publish:
npm:
token: $npm_token
argot-open-ai:
target: typescript
source: ArgotOpenAi-OAS
publish:
npm:
token: $npm_token
codeSamples:
registry:
location: registry.speakeasyapi.dev/argot/argot/argot-open-ai-oas-code-samples
blocking: false
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,14 @@ Based on:
### Generated
- [typescript v0.0.5] .
### Releases
- [NPM v0.0.5] https://www.npmjs.com/package/argot-open-ai/v/0.0.5 - .
- [NPM v0.0.5] https://www.npmjs.com/package/argot-open-ai/v/0.0.5 - .

## 2024-11-02 00:09:29
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.424.0 (2.445.1) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v0.0.6] .
### Releases
- [NPM v0.0.6] https://www.npmjs.com/package/argot-open-ai/v/0.0.6 - .
1 change: 1 addition & 0 deletions docs/models/components/createchatcompletionrequest.md

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/models/components/createrunrequest.md

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/models/components/createthreadandrunrequest.md

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions 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.5",
"version": "0.0.6",
"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.5",
"version": "0.0.6",
"author": "Speakeasy",
"main": "./index.js",
"sideEffects": false,
Expand Down
6 changes: 3 additions & 3 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.5",
genVersion: "2.438.15",
userAgent: "speakeasy-sdk/typescript 0.0.5 2.438.15 2.3.0 argot-open-ai",
sdkVersion: "0.0.6",
genVersion: "2.445.1",
userAgent: "speakeasy-sdk/typescript 0.0.6 2.445.1 2.3.0 argot-open-ai",
} as const;
9 changes: 9 additions & 0 deletions src/models/components/createchatcompletionrequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,10 @@ 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 @@ -586,6 +590,7 @@ 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 @@ -605,6 +610,7 @@ 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 @@ -635,6 +641,7 @@ 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 @@ -674,6 +681,7 @@ 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 @@ -693,6 +701,7 @@ 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: 9 additions & 0 deletions src/models/components/createrunrequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,10 @@ 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 @@ -341,6 +345,7 @@ 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 @@ -352,6 +357,7 @@ 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 @@ -379,6 +385,7 @@ 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 @@ -414,6 +421,7 @@ 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 @@ -425,6 +433,7 @@ 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: 9 additions & 0 deletions src/models/components/createthreadandrunrequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,10 @@ 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 @@ -527,6 +531,7 @@ 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 @@ -537,6 +542,7 @@ 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 @@ -567,6 +573,7 @@ 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 @@ -604,6 +611,7 @@ 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 @@ -614,6 +622,7 @@ 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: 9 additions & 0 deletions src/models/components/runobject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,10 @@ 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 @@ -692,6 +696,7 @@ 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 @@ -711,6 +716,7 @@ 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 @@ -746,6 +752,7 @@ 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 @@ -788,6 +795,7 @@ 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 @@ -807,6 +815,7 @@ 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 b163cf9

Please sign in to comment.