File tree Expand file tree Collapse file tree 5 files changed +31
-22
lines changed Expand file tree Collapse file tree 5 files changed +31
-22
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,10 @@ Methods:
20
20
21
21
# Chat
22
22
23
+ Types:
24
+
25
+ - <code ><a href =" ./src/resources/chat/chat.ts " >ChatModel</a ></code >
26
+
23
27
## Completions
24
28
25
29
Types:
Original file line number Diff line number Diff line change @@ -238,6 +238,7 @@ export namespace OpenAI {
238
238
export import CompletionCreateParamsStreaming = API . CompletionCreateParamsStreaming ;
239
239
240
240
export import Chat = API . Chat ;
241
+ export import ChatModel = API . ChatModel ;
241
242
export import ChatCompletion = API . ChatCompletion ;
242
243
export import ChatCompletionAssistantMessageParam = API . ChatCompletionAssistantMessageParam ;
243
244
export import ChatCompletionChunk = API . ChatCompletionChunk ;
Original file line number Diff line number Diff line change 1
1
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
3
3
import { APIResource } from 'openai/resource' ;
4
+ import * as ChatAPI from 'openai/resources/chat/chat' ;
4
5
import * as CompletionsAPI from 'openai/resources/chat/completions' ;
5
6
6
7
export class Chat extends APIResource {
7
8
completions : CompletionsAPI . Completions = new CompletionsAPI . Completions ( this . _client ) ;
8
9
}
9
10
11
+ export type ChatModel =
12
+ | 'gpt-4-turbo'
13
+ | 'gpt-4-turbo-2024-04-09'
14
+ | 'gpt-4-0125-preview'
15
+ | 'gpt-4-turbo-preview'
16
+ | 'gpt-4-1106-preview'
17
+ | 'gpt-4-vision-preview'
18
+ | 'gpt-4'
19
+ | 'gpt-4-0314'
20
+ | 'gpt-4-0613'
21
+ | 'gpt-4-32k'
22
+ | 'gpt-4-32k-0314'
23
+ | 'gpt-4-32k-0613'
24
+ | 'gpt-3.5-turbo'
25
+ | 'gpt-3.5-turbo-16k'
26
+ | 'gpt-3.5-turbo-0301'
27
+ | 'gpt-3.5-turbo-0613'
28
+ | 'gpt-3.5-turbo-1106'
29
+ | 'gpt-3.5-turbo-0125'
30
+ | 'gpt-3.5-turbo-16k-0613' ;
31
+
10
32
export namespace Chat {
33
+ export import ChatModel = ChatAPI . ChatModel ;
11
34
export import Completions = CompletionsAPI . Completions ;
12
35
export import ChatCompletion = CompletionsAPI . ChatCompletion ;
13
36
export import ChatCompletionAssistantMessageParam = CompletionsAPI . ChatCompletionAssistantMessageParam ;
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import { APIResource } from 'openai/resource';
6
6
import * as ChatCompletionsAPI from 'openai/resources/chat/completions' ;
7
7
import * as CompletionsAPI from 'openai/resources/completions' ;
8
8
import * as Shared from 'openai/resources/shared' ;
9
+ import * as ChatAPI from 'openai/resources/chat/chat' ;
9
10
import { Stream } from 'openai/streaming' ;
10
11
11
12
export class Completions extends APIResource {
@@ -665,27 +666,7 @@ export interface ChatCompletionCreateParamsBase {
665
666
* [model endpoint compatibility](https://platform.openai.com/docs/models/model-endpoint-compatibility)
666
667
* table for details on which models work with the Chat API.
667
668
*/
668
- model :
669
- | ( string & { } )
670
- | 'gpt-4-turbo'
671
- | 'gpt-4-turbo-2024-04-09'
672
- | 'gpt-4-0125-preview'
673
- | 'gpt-4-turbo-preview'
674
- | 'gpt-4-1106-preview'
675
- | 'gpt-4-vision-preview'
676
- | 'gpt-4'
677
- | 'gpt-4-0314'
678
- | 'gpt-4-0613'
679
- | 'gpt-4-32k'
680
- | 'gpt-4-32k-0314'
681
- | 'gpt-4-32k-0613'
682
- | 'gpt-3.5-turbo'
683
- | 'gpt-3.5-turbo-16k'
684
- | 'gpt-3.5-turbo-0301'
685
- | 'gpt-3.5-turbo-0613'
686
- | 'gpt-3.5-turbo-1106'
687
- | 'gpt-3.5-turbo-0125'
688
- | 'gpt-3.5-turbo-16k-0613' ;
669
+ model : ( string & { } ) | ChatAPI . ChatModel ;
689
670
690
671
/**
691
672
* Number between -2.0 and 2.0. Positive values penalize new tokens based on their
Original file line number Diff line number Diff line change 1
1
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
3
- export { Chat } from './chat' ;
4
3
export {
5
4
ChatCompletion ,
6
5
ChatCompletionAssistantMessageParam ,
@@ -30,3 +29,4 @@ export {
30
29
CompletionCreateParamsStreaming ,
31
30
Completions ,
32
31
} from './completions' ;
32
+ export { ChatModel , Chat } from './chat' ;
You can’t perform that action at this time.
0 commit comments