Skip to content

Commit 5cd4b79

Browse files
Stainless Botstainless-app[bot]
authored andcommitted
feat(api): OpenAPI spec update via Stainless API (#112)
1 parent 32862a2 commit 5cd4b79

File tree

98 files changed

+2
-44
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

98 files changed

+2
-44
lines changed

.devcontainer/Dockerfile

100644100755
File mode changed.

.devcontainer/devcontainer.json

100644100755
File mode changed.

.eslintrc.js

100644100755
File mode changed.

.github/workflows/ci.yml

100644100755
File mode changed.

.github/workflows/publish-npm.yml

100644100755
File mode changed.

.github/workflows/release-doctor.yml

100644100755
File mode changed.

.gitignore

100644100755
File mode changed.

.prettierignore

100644100755
File mode changed.

.prettierrc.json

100644100755
File mode changed.

.release-please-manifest.json

100644100755
File mode changed.

.stats.yml

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 7
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/groqcloud%2Fgroqcloud-a10a2e26af1859694bf25612d54e7909296f7aaf82822c6a1681632bf28ec669.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/groqcloud%2Fgroqcloud-1f0d266ba97b03672f10d33a6dc6e324af9a95646f978ffbff6a31f3907bbfe7.yml

Brewfile

100644100755
File mode changed.

CHANGELOG.md

100644100755
File mode changed.

CODEOWNERS

100644100755
File mode changed.

CONTRIBUTING.md

100644100755
File mode changed.

LICENSE

100644100755
File mode changed.

README.md

100644100755
File mode changed.

SECURITY.md

100644100755
File mode changed.

api.md

100644100755
File mode changed.

bin/check-release-environment

100644100755
File mode changed.

bin/publish-npm

100644100755
File mode changed.

examples/.keep

100644100755
File mode changed.

examples/chat_completion.js

100644100755
File mode changed.

examples/chat_completion_stop.js

100644100755
File mode changed.

examples/chat_completion_streaming.js

100644100755
File mode changed.

jest.config.ts

100644100755
File mode changed.

package.json

100644100755
File mode changed.

release-please-config.json

100644100755
File mode changed.

scripts/utils/check-version.cjs

100644100755
File mode changed.

scripts/utils/fix-index-exports.cjs

100644100755
File mode changed.

scripts/utils/make-dist-package-json.cjs

100644100755
File mode changed.

scripts/utils/postprocess-files.cjs

100644100755
File mode changed.

src/_shims/MultipartBody.ts

100644100755
File mode changed.

src/_shims/README.md

100644100755
File mode changed.

src/_shims/auto/runtime-bun.ts

100644100755
File mode changed.

src/_shims/auto/runtime-deno.ts

100644100755
File mode changed.

src/_shims/auto/runtime-node.ts

100644100755
File mode changed.

src/_shims/auto/runtime.ts

100644100755
File mode changed.

src/_shims/auto/types-deno.ts

100644100755
File mode changed.

src/_shims/auto/types-node.ts

100644100755
File mode changed.

src/_shims/auto/types.d.ts

100644100755
File mode changed.

src/_shims/auto/types.js

100644100755
File mode changed.

src/_shims/auto/types.mjs

100644100755
File mode changed.

src/_shims/bun-runtime.ts

100644100755
File mode changed.

src/_shims/index-deno.ts

100644100755
File mode changed.

src/_shims/index.d.ts

100644100755
File mode changed.

src/_shims/index.js

100644100755
File mode changed.

src/_shims/index.mjs

100644100755
File mode changed.

src/_shims/manual-types.d.ts

100644100755
File mode changed.

src/_shims/manual-types.js

100644100755
File mode changed.

src/_shims/manual-types.mjs

100644100755
File mode changed.

src/_shims/node-runtime.ts

100644100755
File mode changed.

src/_shims/node-types.d.ts

100644100755
File mode changed.

src/_shims/node-types.js

100644100755
File mode changed.

src/_shims/node-types.mjs

100644100755
File mode changed.

src/_shims/registry.ts

100644100755
File mode changed.

src/_shims/web-runtime.ts

100644100755
File mode changed.

src/_shims/web-types.d.ts

100644100755
File mode changed.

src/_shims/web-types.js

100644100755
File mode changed.

src/_shims/web-types.mjs

100644100755
File mode changed.

src/core.ts

100644100755
File mode changed.

src/error.ts

100644100755
File mode changed.

src/index.ts

100644100755
File mode changed.

src/lib/.keep

100644100755
File mode changed.

src/lib/streaming.ts

100644100755
File mode changed.

src/resource.ts

100644100755
File mode changed.

src/resources/audio/audio.ts

100644100755
File mode changed.

src/resources/audio/index.ts

100644100755
File mode changed.

src/resources/audio/transcriptions.ts

100644100755
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ export interface TranscriptionCreateParams {
7575
| 'da'
7676
| 'hu'
7777
| 'ta'
78-
| 'no'
7978
| 'th'
8079
| 'ur'
8180
| 'hr'

src/resources/audio/translations.ts

100644100755
File mode changed.

src/resources/chat/chat.ts

100644100755
File mode changed.

src/resources/chat/completions.ts

100644100755
Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -143,11 +143,6 @@ export interface ChatCompletionAssistantMessageParam {
143143
*/
144144
name?: string;
145145

146-
/**
147-
* DO NOT USE. This field is present because OpenAI allows it and userssend it.
148-
*/
149-
tool_call_id?: string | null;
150-
151146
/**
152147
* The tool calls generated by the model, such as function calls.
153148
*/
@@ -417,11 +412,6 @@ export interface ChatCompletionFunctionMessageParam {
417412
* The role of the messages author, in this case `function`.
418413
*/
419414
role: 'function';
420-
421-
/**
422-
* DO NOT USE. This field is present because OpenAI allows it and users send it.
423-
*/
424-
tool_call_id?: string | null;
425415
}
426416

427417
/**
@@ -558,11 +548,6 @@ export interface ChatCompletionSystemMessageParam {
558548
* differentiate between participants of the same role.
559549
*/
560550
name?: string;
561-
562-
/**
563-
* DO NOT USE. This field is present because OpenAI allows it and userssend it.
564-
*/
565-
tool_call_id?: string | null;
566551
}
567552

568553
export interface ChatCompletionTokenLogprob {
@@ -655,11 +640,6 @@ export interface ChatCompletionToolMessageParam {
655640
* Tool call that this message is responding to.
656641
*/
657642
tool_call_id: string;
658-
659-
/**
660-
* DO NOT USE. This field is present because OpenAI allows it and userssend it.
661-
*/
662-
name?: string;
663643
}
664644

665645
export interface ChatCompletionUserMessageParam {
@@ -678,11 +658,6 @@ export interface ChatCompletionUserMessageParam {
678658
* differentiate between participants of the same role.
679659
*/
680660
name?: string;
681-
682-
/**
683-
* DO NOT USE. This field is present because OpenAI allows it and userssend it.
684-
*/
685-
tool_call_id?: string | null;
686661
}
687662

688663
export type ChatCompletionCreateParams =
@@ -801,11 +776,6 @@ export interface ChatCompletionCreateParamsBase {
801776
*/
802777
stream?: boolean | null;
803778

804-
/**
805-
* Options for streaming response. Only set this when you set `stream: true`.
806-
*/
807-
stream_options?: CompletionCreateParams.StreamOptions | null;
808-
809779
/**
810780
* What sampling temperature to use, between 0 and 2. Higher values like 0.8 will
811781
* make the output more random, while lower values like 0.2 will make it more
@@ -900,16 +870,6 @@ export namespace CompletionCreateParams {
900870
*/
901871
type?: 'text' | 'json_object';
902872
}
903-
904-
/**
905-
* Options for streaming response. Only set this when you set `stream: true`.
906-
*/
907-
export interface StreamOptions {
908-
/**
909-
* This field is unused
910-
*/
911-
include_usage?: boolean;
912-
}
913873
}
914874

915875
export interface ChatCompletionCreateParamsNonStreaming extends ChatCompletionCreateParamsBase {

src/resources/chat/index.ts

100644100755
File mode changed.

src/resources/completions.ts

100644100755
File mode changed.

src/resources/embeddings.ts

100644100755
File mode changed.

src/resources/index.ts

100644100755
File mode changed.

src/resources/models.ts

100644100755
File mode changed.

src/resources/shared.ts

100644100755
File mode changed.

src/shims/node.ts

100644100755
File mode changed.

src/shims/web.ts

100644100755
File mode changed.

src/uploads.ts

100644100755
File mode changed.

src/version.ts

100644100755
File mode changed.

tests/api-resources/audio/transcriptions.test.ts

100644100755
File mode changed.

tests/api-resources/audio/translations.test.ts

100644100755
File mode changed.

tests/api-resources/chat/completions.test.ts

100644100755
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ describe('resource completions', () => {
2525

2626
test('create: required and optional params', async () => {
2727
const response = await client.chat.completions.create({
28-
messages: [{ content: 'content', role: 'system', name: 'name', tool_call_id: 'tool_call_id' }],
28+
messages: [{ content: 'content', role: 'system', name: 'name' }],
2929
model: 'string',
3030
frequency_penalty: -2,
3131
function_call: 'none',
@@ -44,7 +44,6 @@ describe('resource completions', () => {
4444
seed: 0,
4545
stop: '\n',
4646
stream: true,
47-
stream_options: { include_usage: true },
4847
temperature: 1,
4948
tool_choice: 'none',
5049
tools: [

tests/api-resources/embeddings.test.ts

100644100755
File mode changed.

tests/api-resources/models.test.ts

100644100755
File mode changed.

tests/form.test.ts

100644100755
File mode changed.

tests/index.test.ts

100644100755
File mode changed.

tests/responses.test.ts

100644100755
File mode changed.

tests/stringifyQuery.test.ts

100644100755
File mode changed.

tests/uploads.test.ts

100644100755
File mode changed.

tsc-multi.json

100644100755
File mode changed.

tsconfig.build.json

100644100755
File mode changed.

tsconfig.deno.json

100644100755
File mode changed.

tsconfig.dist-src.json

100644100755
File mode changed.

tsconfig.json

100644100755
File mode changed.

yarn.lock

100644100755
File mode changed.

0 commit comments

Comments
 (0)