|
|
|
|
@@ -364,6 +364,10 @@ func GetGeminiVertexModels() []*ModelInfo {
|
|
|
|
|
Version: "3.1",
|
|
|
|
|
DisplayName: "Gemini 3.1 Flash Image Preview",
|
|
|
|
|
Description: "Gemini 3.1 Flash Image Preview",
|
|
|
|
|
InputTokenLimit: 1048576,
|
|
|
|
|
OutputTokenLimit: 65536,
|
|
|
|
|
SupportedGenerationMethods: []string{"generateContent", "countTokens", "createCachedContent", "batchGenerateContent"},
|
|
|
|
|
Thinking: &ThinkingSupport{Min: 128, Max: 32768, ZeroAllowed: false, DynamicAllowed: true, Levels: []string{"minimal", "high"}},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
ID: "gemini-3.1-flash-lite-preview",
|
|
|
|
|
@@ -756,8 +760,474 @@ func GetAIStudioModels() []*ModelInfo {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// GetOpenAIModels returns the standard OpenAI model definitions
|
|
|
|
|
func GetOpenAIModels() []*ModelInfo {
|
|
|
|
|
// GetCodexFreeModels returns model definitions for the Codex free plan tier.
|
|
|
|
|
func GetCodexFreeModels() []*ModelInfo {
|
|
|
|
|
return []*ModelInfo{
|
|
|
|
|
{
|
|
|
|
|
ID: "gpt-5",
|
|
|
|
|
Object: "model",
|
|
|
|
|
Created: 1754524800,
|
|
|
|
|
OwnedBy: "openai",
|
|
|
|
|
Type: "openai",
|
|
|
|
|
Version: "gpt-5-2025-08-07",
|
|
|
|
|
DisplayName: "GPT 5",
|
|
|
|
|
Description: "Stable version of GPT 5, The best model for coding and agentic tasks across domains.",
|
|
|
|
|
ContextLength: 400000,
|
|
|
|
|
MaxCompletionTokens: 128000,
|
|
|
|
|
SupportedParameters: []string{"tools"},
|
|
|
|
|
Thinking: &ThinkingSupport{Levels: []string{"minimal", "low", "medium", "high"}},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
ID: "gpt-5-codex",
|
|
|
|
|
Object: "model",
|
|
|
|
|
Created: 1757894400,
|
|
|
|
|
OwnedBy: "openai",
|
|
|
|
|
Type: "openai",
|
|
|
|
|
Version: "gpt-5-2025-09-15",
|
|
|
|
|
DisplayName: "GPT 5 Codex",
|
|
|
|
|
Description: "Stable version of GPT 5 Codex, The best model for coding and agentic tasks across domains.",
|
|
|
|
|
ContextLength: 400000,
|
|
|
|
|
MaxCompletionTokens: 128000,
|
|
|
|
|
SupportedParameters: []string{"tools"},
|
|
|
|
|
Thinking: &ThinkingSupport{Levels: []string{"low", "medium", "high"}},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
ID: "gpt-5-codex-mini",
|
|
|
|
|
Object: "model",
|
|
|
|
|
Created: 1762473600,
|
|
|
|
|
OwnedBy: "openai",
|
|
|
|
|
Type: "openai",
|
|
|
|
|
Version: "gpt-5-2025-11-07",
|
|
|
|
|
DisplayName: "GPT 5 Codex Mini",
|
|
|
|
|
Description: "Stable version of GPT 5 Codex Mini: cheaper, faster, but less capable version of GPT 5 Codex.",
|
|
|
|
|
ContextLength: 400000,
|
|
|
|
|
MaxCompletionTokens: 128000,
|
|
|
|
|
SupportedParameters: []string{"tools"},
|
|
|
|
|
Thinking: &ThinkingSupport{Levels: []string{"low", "medium", "high"}},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
ID: "gpt-5.1",
|
|
|
|
|
Object: "model",
|
|
|
|
|
Created: 1762905600,
|
|
|
|
|
OwnedBy: "openai",
|
|
|
|
|
Type: "openai",
|
|
|
|
|
Version: "gpt-5.1-2025-11-12",
|
|
|
|
|
DisplayName: "GPT 5",
|
|
|
|
|
Description: "Stable version of GPT 5, The best model for coding and agentic tasks across domains.",
|
|
|
|
|
ContextLength: 400000,
|
|
|
|
|
MaxCompletionTokens: 128000,
|
|
|
|
|
SupportedParameters: []string{"tools"},
|
|
|
|
|
Thinking: &ThinkingSupport{Levels: []string{"none", "low", "medium", "high"}},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
ID: "gpt-5.1-codex",
|
|
|
|
|
Object: "model",
|
|
|
|
|
Created: 1762905600,
|
|
|
|
|
OwnedBy: "openai",
|
|
|
|
|
Type: "openai",
|
|
|
|
|
Version: "gpt-5.1-2025-11-12",
|
|
|
|
|
DisplayName: "GPT 5.1 Codex",
|
|
|
|
|
Description: "Stable version of GPT 5.1 Codex, The best model for coding and agentic tasks across domains.",
|
|
|
|
|
ContextLength: 400000,
|
|
|
|
|
MaxCompletionTokens: 128000,
|
|
|
|
|
SupportedParameters: []string{"tools"},
|
|
|
|
|
Thinking: &ThinkingSupport{Levels: []string{"low", "medium", "high"}},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
ID: "gpt-5.1-codex-mini",
|
|
|
|
|
Object: "model",
|
|
|
|
|
Created: 1762905600,
|
|
|
|
|
OwnedBy: "openai",
|
|
|
|
|
Type: "openai",
|
|
|
|
|
Version: "gpt-5.1-2025-11-12",
|
|
|
|
|
DisplayName: "GPT 5.1 Codex Mini",
|
|
|
|
|
Description: "Stable version of GPT 5.1 Codex Mini: cheaper, faster, but less capable version of GPT 5.1 Codex.",
|
|
|
|
|
ContextLength: 400000,
|
|
|
|
|
MaxCompletionTokens: 128000,
|
|
|
|
|
SupportedParameters: []string{"tools"},
|
|
|
|
|
Thinking: &ThinkingSupport{Levels: []string{"low", "medium", "high"}},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
ID: "gpt-5.1-codex-max",
|
|
|
|
|
Object: "model",
|
|
|
|
|
Created: 1763424000,
|
|
|
|
|
OwnedBy: "openai",
|
|
|
|
|
Type: "openai",
|
|
|
|
|
Version: "gpt-5.1-max",
|
|
|
|
|
DisplayName: "GPT 5.1 Codex Max",
|
|
|
|
|
Description: "Stable version of GPT 5.1 Codex Max",
|
|
|
|
|
ContextLength: 400000,
|
|
|
|
|
MaxCompletionTokens: 128000,
|
|
|
|
|
SupportedParameters: []string{"tools"},
|
|
|
|
|
Thinking: &ThinkingSupport{Levels: []string{"low", "medium", "high", "xhigh"}},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
ID: "gpt-5.2",
|
|
|
|
|
Object: "model",
|
|
|
|
|
Created: 1765440000,
|
|
|
|
|
OwnedBy: "openai",
|
|
|
|
|
Type: "openai",
|
|
|
|
|
Version: "gpt-5.2",
|
|
|
|
|
DisplayName: "GPT 5.2",
|
|
|
|
|
Description: "Stable version of GPT 5.2",
|
|
|
|
|
ContextLength: 400000,
|
|
|
|
|
MaxCompletionTokens: 128000,
|
|
|
|
|
SupportedParameters: []string{"tools"},
|
|
|
|
|
Thinking: &ThinkingSupport{Levels: []string{"none", "low", "medium", "high", "xhigh"}},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
ID: "gpt-5.2-codex",
|
|
|
|
|
Object: "model",
|
|
|
|
|
Created: 1765440000,
|
|
|
|
|
OwnedBy: "openai",
|
|
|
|
|
Type: "openai",
|
|
|
|
|
Version: "gpt-5.2",
|
|
|
|
|
DisplayName: "GPT 5.2 Codex",
|
|
|
|
|
Description: "Stable version of GPT 5.2 Codex, The best model for coding and agentic tasks across domains.",
|
|
|
|
|
ContextLength: 400000,
|
|
|
|
|
MaxCompletionTokens: 128000,
|
|
|
|
|
SupportedParameters: []string{"tools"},
|
|
|
|
|
Thinking: &ThinkingSupport{Levels: []string{"low", "medium", "high", "xhigh"}},
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// GetCodexTeamModels returns model definitions for the Codex team plan tier.
|
|
|
|
|
func GetCodexTeamModels() []*ModelInfo {
|
|
|
|
|
return []*ModelInfo{
|
|
|
|
|
{
|
|
|
|
|
ID: "gpt-5",
|
|
|
|
|
Object: "model",
|
|
|
|
|
Created: 1754524800,
|
|
|
|
|
OwnedBy: "openai",
|
|
|
|
|
Type: "openai",
|
|
|
|
|
Version: "gpt-5-2025-08-07",
|
|
|
|
|
DisplayName: "GPT 5",
|
|
|
|
|
Description: "Stable version of GPT 5, The best model for coding and agentic tasks across domains.",
|
|
|
|
|
ContextLength: 400000,
|
|
|
|
|
MaxCompletionTokens: 128000,
|
|
|
|
|
SupportedParameters: []string{"tools"},
|
|
|
|
|
Thinking: &ThinkingSupport{Levels: []string{"minimal", "low", "medium", "high"}},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
ID: "gpt-5-codex",
|
|
|
|
|
Object: "model",
|
|
|
|
|
Created: 1757894400,
|
|
|
|
|
OwnedBy: "openai",
|
|
|
|
|
Type: "openai",
|
|
|
|
|
Version: "gpt-5-2025-09-15",
|
|
|
|
|
DisplayName: "GPT 5 Codex",
|
|
|
|
|
Description: "Stable version of GPT 5 Codex, The best model for coding and agentic tasks across domains.",
|
|
|
|
|
ContextLength: 400000,
|
|
|
|
|
MaxCompletionTokens: 128000,
|
|
|
|
|
SupportedParameters: []string{"tools"},
|
|
|
|
|
Thinking: &ThinkingSupport{Levels: []string{"low", "medium", "high"}},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
ID: "gpt-5-codex-mini",
|
|
|
|
|
Object: "model",
|
|
|
|
|
Created: 1762473600,
|
|
|
|
|
OwnedBy: "openai",
|
|
|
|
|
Type: "openai",
|
|
|
|
|
Version: "gpt-5-2025-11-07",
|
|
|
|
|
DisplayName: "GPT 5 Codex Mini",
|
|
|
|
|
Description: "Stable version of GPT 5 Codex Mini: cheaper, faster, but less capable version of GPT 5 Codex.",
|
|
|
|
|
ContextLength: 400000,
|
|
|
|
|
MaxCompletionTokens: 128000,
|
|
|
|
|
SupportedParameters: []string{"tools"},
|
|
|
|
|
Thinking: &ThinkingSupport{Levels: []string{"low", "medium", "high"}},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
ID: "gpt-5.1",
|
|
|
|
|
Object: "model",
|
|
|
|
|
Created: 1762905600,
|
|
|
|
|
OwnedBy: "openai",
|
|
|
|
|
Type: "openai",
|
|
|
|
|
Version: "gpt-5.1-2025-11-12",
|
|
|
|
|
DisplayName: "GPT 5",
|
|
|
|
|
Description: "Stable version of GPT 5, The best model for coding and agentic tasks across domains.",
|
|
|
|
|
ContextLength: 400000,
|
|
|
|
|
MaxCompletionTokens: 128000,
|
|
|
|
|
SupportedParameters: []string{"tools"},
|
|
|
|
|
Thinking: &ThinkingSupport{Levels: []string{"none", "low", "medium", "high"}},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
ID: "gpt-5.1-codex",
|
|
|
|
|
Object: "model",
|
|
|
|
|
Created: 1762905600,
|
|
|
|
|
OwnedBy: "openai",
|
|
|
|
|
Type: "openai",
|
|
|
|
|
Version: "gpt-5.1-2025-11-12",
|
|
|
|
|
DisplayName: "GPT 5.1 Codex",
|
|
|
|
|
Description: "Stable version of GPT 5.1 Codex, The best model for coding and agentic tasks across domains.",
|
|
|
|
|
ContextLength: 400000,
|
|
|
|
|
MaxCompletionTokens: 128000,
|
|
|
|
|
SupportedParameters: []string{"tools"},
|
|
|
|
|
Thinking: &ThinkingSupport{Levels: []string{"low", "medium", "high"}},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
ID: "gpt-5.1-codex-mini",
|
|
|
|
|
Object: "model",
|
|
|
|
|
Created: 1762905600,
|
|
|
|
|
OwnedBy: "openai",
|
|
|
|
|
Type: "openai",
|
|
|
|
|
Version: "gpt-5.1-2025-11-12",
|
|
|
|
|
DisplayName: "GPT 5.1 Codex Mini",
|
|
|
|
|
Description: "Stable version of GPT 5.1 Codex Mini: cheaper, faster, but less capable version of GPT 5.1 Codex.",
|
|
|
|
|
ContextLength: 400000,
|
|
|
|
|
MaxCompletionTokens: 128000,
|
|
|
|
|
SupportedParameters: []string{"tools"},
|
|
|
|
|
Thinking: &ThinkingSupport{Levels: []string{"low", "medium", "high"}},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
ID: "gpt-5.1-codex-max",
|
|
|
|
|
Object: "model",
|
|
|
|
|
Created: 1763424000,
|
|
|
|
|
OwnedBy: "openai",
|
|
|
|
|
Type: "openai",
|
|
|
|
|
Version: "gpt-5.1-max",
|
|
|
|
|
DisplayName: "GPT 5.1 Codex Max",
|
|
|
|
|
Description: "Stable version of GPT 5.1 Codex Max",
|
|
|
|
|
ContextLength: 400000,
|
|
|
|
|
MaxCompletionTokens: 128000,
|
|
|
|
|
SupportedParameters: []string{"tools"},
|
|
|
|
|
Thinking: &ThinkingSupport{Levels: []string{"low", "medium", "high", "xhigh"}},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
ID: "gpt-5.2",
|
|
|
|
|
Object: "model",
|
|
|
|
|
Created: 1765440000,
|
|
|
|
|
OwnedBy: "openai",
|
|
|
|
|
Type: "openai",
|
|
|
|
|
Version: "gpt-5.2",
|
|
|
|
|
DisplayName: "GPT 5.2",
|
|
|
|
|
Description: "Stable version of GPT 5.2",
|
|
|
|
|
ContextLength: 400000,
|
|
|
|
|
MaxCompletionTokens: 128000,
|
|
|
|
|
SupportedParameters: []string{"tools"},
|
|
|
|
|
Thinking: &ThinkingSupport{Levels: []string{"none", "low", "medium", "high", "xhigh"}},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
ID: "gpt-5.2-codex",
|
|
|
|
|
Object: "model",
|
|
|
|
|
Created: 1765440000,
|
|
|
|
|
OwnedBy: "openai",
|
|
|
|
|
Type: "openai",
|
|
|
|
|
Version: "gpt-5.2",
|
|
|
|
|
DisplayName: "GPT 5.2 Codex",
|
|
|
|
|
Description: "Stable version of GPT 5.2 Codex, The best model for coding and agentic tasks across domains.",
|
|
|
|
|
ContextLength: 400000,
|
|
|
|
|
MaxCompletionTokens: 128000,
|
|
|
|
|
SupportedParameters: []string{"tools"},
|
|
|
|
|
Thinking: &ThinkingSupport{Levels: []string{"low", "medium", "high", "xhigh"}},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
ID: "gpt-5.3-codex",
|
|
|
|
|
Object: "model",
|
|
|
|
|
Created: 1770307200,
|
|
|
|
|
OwnedBy: "openai",
|
|
|
|
|
Type: "openai",
|
|
|
|
|
Version: "gpt-5.3",
|
|
|
|
|
DisplayName: "GPT 5.3 Codex",
|
|
|
|
|
Description: "Stable version of GPT 5.3 Codex, The best model for coding and agentic tasks across domains.",
|
|
|
|
|
ContextLength: 400000,
|
|
|
|
|
MaxCompletionTokens: 128000,
|
|
|
|
|
SupportedParameters: []string{"tools"},
|
|
|
|
|
Thinking: &ThinkingSupport{Levels: []string{"low", "medium", "high", "xhigh"}},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
ID: "gpt-5.4",
|
|
|
|
|
Object: "model",
|
|
|
|
|
Created: 1772668800,
|
|
|
|
|
OwnedBy: "openai",
|
|
|
|
|
Type: "openai",
|
|
|
|
|
Version: "gpt-5.4",
|
|
|
|
|
DisplayName: "GPT 5.4",
|
|
|
|
|
Description: "Stable version of GPT 5.4",
|
|
|
|
|
ContextLength: 1_050_000,
|
|
|
|
|
MaxCompletionTokens: 128000,
|
|
|
|
|
SupportedParameters: []string{"tools"},
|
|
|
|
|
Thinking: &ThinkingSupport{Levels: []string{"low", "medium", "high", "xhigh"}},
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// GetCodexPlusModels returns model definitions for the Codex plus plan tier.
|
|
|
|
|
func GetCodexPlusModels() []*ModelInfo {
|
|
|
|
|
return []*ModelInfo{
|
|
|
|
|
{
|
|
|
|
|
ID: "gpt-5",
|
|
|
|
|
Object: "model",
|
|
|
|
|
Created: 1754524800,
|
|
|
|
|
OwnedBy: "openai",
|
|
|
|
|
Type: "openai",
|
|
|
|
|
Version: "gpt-5-2025-08-07",
|
|
|
|
|
DisplayName: "GPT 5",
|
|
|
|
|
Description: "Stable version of GPT 5, The best model for coding and agentic tasks across domains.",
|
|
|
|
|
ContextLength: 400000,
|
|
|
|
|
MaxCompletionTokens: 128000,
|
|
|
|
|
SupportedParameters: []string{"tools"},
|
|
|
|
|
Thinking: &ThinkingSupport{Levels: []string{"minimal", "low", "medium", "high"}},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
ID: "gpt-5-codex",
|
|
|
|
|
Object: "model",
|
|
|
|
|
Created: 1757894400,
|
|
|
|
|
OwnedBy: "openai",
|
|
|
|
|
Type: "openai",
|
|
|
|
|
Version: "gpt-5-2025-09-15",
|
|
|
|
|
DisplayName: "GPT 5 Codex",
|
|
|
|
|
Description: "Stable version of GPT 5 Codex, The best model for coding and agentic tasks across domains.",
|
|
|
|
|
ContextLength: 400000,
|
|
|
|
|
MaxCompletionTokens: 128000,
|
|
|
|
|
SupportedParameters: []string{"tools"},
|
|
|
|
|
Thinking: &ThinkingSupport{Levels: []string{"low", "medium", "high"}},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
ID: "gpt-5-codex-mini",
|
|
|
|
|
Object: "model",
|
|
|
|
|
Created: 1762473600,
|
|
|
|
|
OwnedBy: "openai",
|
|
|
|
|
Type: "openai",
|
|
|
|
|
Version: "gpt-5-2025-11-07",
|
|
|
|
|
DisplayName: "GPT 5 Codex Mini",
|
|
|
|
|
Description: "Stable version of GPT 5 Codex Mini: cheaper, faster, but less capable version of GPT 5 Codex.",
|
|
|
|
|
ContextLength: 400000,
|
|
|
|
|
MaxCompletionTokens: 128000,
|
|
|
|
|
SupportedParameters: []string{"tools"},
|
|
|
|
|
Thinking: &ThinkingSupport{Levels: []string{"low", "medium", "high"}},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
ID: "gpt-5.1",
|
|
|
|
|
Object: "model",
|
|
|
|
|
Created: 1762905600,
|
|
|
|
|
OwnedBy: "openai",
|
|
|
|
|
Type: "openai",
|
|
|
|
|
Version: "gpt-5.1-2025-11-12",
|
|
|
|
|
DisplayName: "GPT 5",
|
|
|
|
|
Description: "Stable version of GPT 5, The best model for coding and agentic tasks across domains.",
|
|
|
|
|
ContextLength: 400000,
|
|
|
|
|
MaxCompletionTokens: 128000,
|
|
|
|
|
SupportedParameters: []string{"tools"},
|
|
|
|
|
Thinking: &ThinkingSupport{Levels: []string{"none", "low", "medium", "high"}},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
ID: "gpt-5.1-codex",
|
|
|
|
|
Object: "model",
|
|
|
|
|
Created: 1762905600,
|
|
|
|
|
OwnedBy: "openai",
|
|
|
|
|
Type: "openai",
|
|
|
|
|
Version: "gpt-5.1-2025-11-12",
|
|
|
|
|
DisplayName: "GPT 5.1 Codex",
|
|
|
|
|
Description: "Stable version of GPT 5.1 Codex, The best model for coding and agentic tasks across domains.",
|
|
|
|
|
ContextLength: 400000,
|
|
|
|
|
MaxCompletionTokens: 128000,
|
|
|
|
|
SupportedParameters: []string{"tools"},
|
|
|
|
|
Thinking: &ThinkingSupport{Levels: []string{"low", "medium", "high"}},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
ID: "gpt-5.1-codex-mini",
|
|
|
|
|
Object: "model",
|
|
|
|
|
Created: 1762905600,
|
|
|
|
|
OwnedBy: "openai",
|
|
|
|
|
Type: "openai",
|
|
|
|
|
Version: "gpt-5.1-2025-11-12",
|
|
|
|
|
DisplayName: "GPT 5.1 Codex Mini",
|
|
|
|
|
Description: "Stable version of GPT 5.1 Codex Mini: cheaper, faster, but less capable version of GPT 5.1 Codex.",
|
|
|
|
|
ContextLength: 400000,
|
|
|
|
|
MaxCompletionTokens: 128000,
|
|
|
|
|
SupportedParameters: []string{"tools"},
|
|
|
|
|
Thinking: &ThinkingSupport{Levels: []string{"low", "medium", "high"}},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
ID: "gpt-5.1-codex-max",
|
|
|
|
|
Object: "model",
|
|
|
|
|
Created: 1763424000,
|
|
|
|
|
OwnedBy: "openai",
|
|
|
|
|
Type: "openai",
|
|
|
|
|
Version: "gpt-5.1-max",
|
|
|
|
|
DisplayName: "GPT 5.1 Codex Max",
|
|
|
|
|
Description: "Stable version of GPT 5.1 Codex Max",
|
|
|
|
|
ContextLength: 400000,
|
|
|
|
|
MaxCompletionTokens: 128000,
|
|
|
|
|
SupportedParameters: []string{"tools"},
|
|
|
|
|
Thinking: &ThinkingSupport{Levels: []string{"low", "medium", "high", "xhigh"}},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
ID: "gpt-5.2",
|
|
|
|
|
Object: "model",
|
|
|
|
|
Created: 1765440000,
|
|
|
|
|
OwnedBy: "openai",
|
|
|
|
|
Type: "openai",
|
|
|
|
|
Version: "gpt-5.2",
|
|
|
|
|
DisplayName: "GPT 5.2",
|
|
|
|
|
Description: "Stable version of GPT 5.2",
|
|
|
|
|
ContextLength: 400000,
|
|
|
|
|
MaxCompletionTokens: 128000,
|
|
|
|
|
SupportedParameters: []string{"tools"},
|
|
|
|
|
Thinking: &ThinkingSupport{Levels: []string{"none", "low", "medium", "high", "xhigh"}},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
ID: "gpt-5.2-codex",
|
|
|
|
|
Object: "model",
|
|
|
|
|
Created: 1765440000,
|
|
|
|
|
OwnedBy: "openai",
|
|
|
|
|
Type: "openai",
|
|
|
|
|
Version: "gpt-5.2",
|
|
|
|
|
DisplayName: "GPT 5.2 Codex",
|
|
|
|
|
Description: "Stable version of GPT 5.2 Codex, The best model for coding and agentic tasks across domains.",
|
|
|
|
|
ContextLength: 400000,
|
|
|
|
|
MaxCompletionTokens: 128000,
|
|
|
|
|
SupportedParameters: []string{"tools"},
|
|
|
|
|
Thinking: &ThinkingSupport{Levels: []string{"low", "medium", "high", "xhigh"}},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
ID: "gpt-5.3-codex",
|
|
|
|
|
Object: "model",
|
|
|
|
|
Created: 1770307200,
|
|
|
|
|
OwnedBy: "openai",
|
|
|
|
|
Type: "openai",
|
|
|
|
|
Version: "gpt-5.3",
|
|
|
|
|
DisplayName: "GPT 5.3 Codex",
|
|
|
|
|
Description: "Stable version of GPT 5.3 Codex, The best model for coding and agentic tasks across domains.",
|
|
|
|
|
ContextLength: 400000,
|
|
|
|
|
MaxCompletionTokens: 128000,
|
|
|
|
|
SupportedParameters: []string{"tools"},
|
|
|
|
|
Thinking: &ThinkingSupport{Levels: []string{"low", "medium", "high", "xhigh"}},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
ID: "gpt-5.3-codex-spark",
|
|
|
|
|
Object: "model",
|
|
|
|
|
Created: 1770912000,
|
|
|
|
|
OwnedBy: "openai",
|
|
|
|
|
Type: "openai",
|
|
|
|
|
Version: "gpt-5.3",
|
|
|
|
|
DisplayName: "GPT 5.3 Codex Spark",
|
|
|
|
|
Description: "Ultra-fast coding model.",
|
|
|
|
|
ContextLength: 128000,
|
|
|
|
|
MaxCompletionTokens: 128000,
|
|
|
|
|
SupportedParameters: []string{"tools"},
|
|
|
|
|
Thinking: &ThinkingSupport{Levels: []string{"low", "medium", "high", "xhigh"}},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
ID: "gpt-5.4",
|
|
|
|
|
Object: "model",
|
|
|
|
|
Created: 1772668800,
|
|
|
|
|
OwnedBy: "openai",
|
|
|
|
|
Type: "openai",
|
|
|
|
|
Version: "gpt-5.4",
|
|
|
|
|
DisplayName: "GPT 5.4",
|
|
|
|
|
Description: "Stable version of GPT 5.4",
|
|
|
|
|
ContextLength: 1_050_000,
|
|
|
|
|
MaxCompletionTokens: 128000,
|
|
|
|
|
SupportedParameters: []string{"tools"},
|
|
|
|
|
Thinking: &ThinkingSupport{Levels: []string{"low", "medium", "high", "xhigh"}},
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// GetCodexProModels returns model definitions for the Codex pro plan tier.
|
|
|
|
|
func GetCodexProModels() []*ModelInfo {
|
|
|
|
|
return []*ModelInfo{
|
|
|
|
|
{
|
|
|
|
|
ID: "gpt-5",
|
|
|
|
|
@@ -1047,18 +1517,18 @@ type AntigravityModelConfig struct {
|
|
|
|
|
// Keys use upstream model names returned by the Antigravity models endpoint.
|
|
|
|
|
func GetAntigravityModelConfig() map[string]*AntigravityModelConfig {
|
|
|
|
|
return map[string]*AntigravityModelConfig{
|
|
|
|
|
"gemini-2.5-flash": {Thinking: &ThinkingSupport{Min: 0, Max: 24576, ZeroAllowed: true, DynamicAllowed: true}},
|
|
|
|
|
"gemini-2.5-flash-lite": {Thinking: &ThinkingSupport{Min: 0, Max: 24576, ZeroAllowed: true, DynamicAllowed: true}},
|
|
|
|
|
"gemini-3-pro-high": {Thinking: &ThinkingSupport{Min: 128, Max: 32768, ZeroAllowed: false, DynamicAllowed: true, Levels: []string{"low", "high"}}},
|
|
|
|
|
"gemini-3-pro-low": {Thinking: &ThinkingSupport{Min: 128, Max: 32768, ZeroAllowed: false, DynamicAllowed: true, Levels: []string{"low", "high"}}},
|
|
|
|
|
"gemini-3.1-pro-high": {Thinking: &ThinkingSupport{Min: 128, Max: 32768, ZeroAllowed: false, DynamicAllowed: true, Levels: []string{"low", "high"}}},
|
|
|
|
|
"gemini-3.1-pro-low": {Thinking: &ThinkingSupport{Min: 128, Max: 32768, ZeroAllowed: false, DynamicAllowed: true, Levels: []string{"low", "high"}}},
|
|
|
|
|
"gemini-3.1-flash-image": {Thinking: &ThinkingSupport{Min: 128, Max: 32768, ZeroAllowed: false, DynamicAllowed: true, Levels: []string{"minimal", "high"}}},
|
|
|
|
|
"gemini-2.5-flash": {Thinking: &ThinkingSupport{Min: 0, Max: 24576, ZeroAllowed: true, DynamicAllowed: true}},
|
|
|
|
|
"gemini-2.5-flash-lite": {Thinking: &ThinkingSupport{Min: 0, Max: 24576, ZeroAllowed: true, DynamicAllowed: true}},
|
|
|
|
|
"gemini-3-pro-high": {Thinking: &ThinkingSupport{Min: 128, Max: 32768, ZeroAllowed: false, DynamicAllowed: true, Levels: []string{"low", "high"}}},
|
|
|
|
|
"gemini-3-pro-low": {Thinking: &ThinkingSupport{Min: 128, Max: 32768, ZeroAllowed: false, DynamicAllowed: true, Levels: []string{"low", "high"}}},
|
|
|
|
|
"gemini-3.1-pro-high": {Thinking: &ThinkingSupport{Min: 128, Max: 32768, ZeroAllowed: false, DynamicAllowed: true, Levels: []string{"low", "high"}}},
|
|
|
|
|
"gemini-3.1-pro-low": {Thinking: &ThinkingSupport{Min: 128, Max: 32768, ZeroAllowed: false, DynamicAllowed: true, Levels: []string{"low", "high"}}},
|
|
|
|
|
"gemini-3.1-flash-image": {Thinking: &ThinkingSupport{Min: 128, Max: 32768, ZeroAllowed: false, DynamicAllowed: true, Levels: []string{"minimal", "high"}}},
|
|
|
|
|
"gemini-3.1-flash-lite-preview": {Thinking: &ThinkingSupport{Min: 128, Max: 32768, ZeroAllowed: false, DynamicAllowed: true, Levels: []string{"minimal", "high"}}},
|
|
|
|
|
"gemini-3-flash": {Thinking: &ThinkingSupport{Min: 128, Max: 32768, ZeroAllowed: false, DynamicAllowed: true, Levels: []string{"minimal", "low", "medium", "high"}}},
|
|
|
|
|
"claude-opus-4-6-thinking": {Thinking: &ThinkingSupport{Min: 1024, Max: 64000, ZeroAllowed: true, DynamicAllowed: true}, MaxCompletionTokens: 64000},
|
|
|
|
|
"claude-sonnet-4-6": {Thinking: &ThinkingSupport{Min: 1024, Max: 64000, ZeroAllowed: true, DynamicAllowed: true}, MaxCompletionTokens: 64000},
|
|
|
|
|
"gpt-oss-120b-medium": {},
|
|
|
|
|
"gemini-3-flash": {Thinking: &ThinkingSupport{Min: 128, Max: 32768, ZeroAllowed: false, DynamicAllowed: true, Levels: []string{"minimal", "low", "medium", "high"}}},
|
|
|
|
|
"claude-opus-4-6-thinking": {Thinking: &ThinkingSupport{Min: 1024, Max: 64000, ZeroAllowed: true, DynamicAllowed: true}, MaxCompletionTokens: 64000},
|
|
|
|
|
"claude-sonnet-4-6": {Thinking: &ThinkingSupport{Min: 1024, Max: 64000, ZeroAllowed: true, DynamicAllowed: true}, MaxCompletionTokens: 64000},
|
|
|
|
|
"gpt-oss-120b-medium": {},
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|