跳到主要内容

Variable: ALL_AVAILABLE_OPENAI_MODELS

const ALL_AVAILABLE_OPENAI_MODELS: object

We currently support GPT-3.5 and GPT-4 models

Type declaration

gpt-3.5-turbo

gpt-3.5-turbo: object

gpt-3.5-turbo.contextWindow

contextWindow: number = 4096

gpt-3.5-turbo-0125

gpt-3.5-turbo-0125: object

gpt-3.5-turbo-0125.contextWindow

contextWindow: number = 16384

gpt-3.5-turbo-0613

gpt-3.5-turbo-0613: object

gpt-3.5-turbo-0613.contextWindow

contextWindow: number = 4096

gpt-3.5-turbo-1106

gpt-3.5-turbo-1106: object

gpt-3.5-turbo-1106.contextWindow

contextWindow: number = 16384

gpt-3.5-turbo-16k

gpt-3.5-turbo-16k: object

gpt-3.5-turbo-16k.contextWindow

contextWindow: number = 16384

gpt-3.5-turbo-16k-0613

gpt-3.5-turbo-16k-0613: object

gpt-3.5-turbo-16k-0613.contextWindow

contextWindow: number = 16384

gpt-4

gpt-4: object

gpt-4.contextWindow

contextWindow: number = 8192

gpt-4-0125-preview

gpt-4-0125-preview: object

gpt-4-0125-preview.contextWindow

contextWindow: number = 128000

gpt-4-1106-preview

gpt-4-1106-preview: object

gpt-4-1106-preview.contextWindow

contextWindow: number = 128000

gpt-4-32k

gpt-4-32k: object

gpt-4-32k.contextWindow

contextWindow: number = 32768

gpt-4-32k-0613

gpt-4-32k-0613: object

gpt-4-32k-0613.contextWindow

contextWindow: number = 32768

gpt-4-turbo

gpt-4-turbo: object

gpt-4-turbo.contextWindow

contextWindow: number = 128000

gpt-4-turbo-preview

gpt-4-turbo-preview: object

gpt-4-turbo-preview.contextWindow

contextWindow: number = 128000

gpt-4-vision-preview

gpt-4-vision-preview: object

gpt-4-vision-preview.contextWindow

contextWindow: number = 128000

Source

packages/core/src/llm/openai.ts:128