Просмотр исходного кода

feat(types): add GPT-5-Codex model (#8260)

Daniel 5 месяцев назад
Родитель
Сommit
1a4fb7f91c
1 измененных файлов с 14 добавлено и 0 удалено
  1. 14 0
      packages/types/src/providers/openai.ts

+ 14 - 0
packages/types/src/providers/openai.ts

@@ -70,6 +70,20 @@ export const openAiNativeModels = {
 		supportsTemperature: false,
 		tiers: [{ name: "flex", contextWindow: 400000, inputPrice: 0.025, outputPrice: 0.2, cacheReadsPrice: 0.0025 }],
 	},
+	"gpt-5-codex": {
+		maxTokens: 128000,
+		contextWindow: 400000,
+		supportsImages: true,
+		supportsPromptCache: true,
+		supportsReasoningEffort: true,
+		reasoningEffort: "medium",
+		inputPrice: 1.25,
+		outputPrice: 10.0,
+		cacheReadsPrice: 0.13,
+		description: "GPT-5-Codex: A version of GPT-5 optimized for agentic coding in Codex",
+		supportsVerbosity: true,
+		supportsTemperature: false,
+	},
 	"gpt-4.1": {
 		maxTokens: 32_768,
 		contextWindow: 1_047_576,