mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 05:30:42 +00:00
104 lines
2.9 KiB
JSON
104 lines
2.9 KiB
JSON
{
|
|
"id": "openai",
|
|
"enabledByDefault": true,
|
|
"providers": ["openai", "openai-codex"],
|
|
"modelSupport": {
|
|
"modelPrefixes": ["gpt-", "o1", "o3", "o4"]
|
|
},
|
|
"modelPricing": {
|
|
"providers": {
|
|
"openai-codex": {
|
|
"openRouter": {
|
|
"provider": "openai"
|
|
},
|
|
"liteLLM": {
|
|
"provider": "openai"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"cliBackends": ["codex-cli"],
|
|
"providerAuthEnvVars": {
|
|
"openai": ["OPENAI_API_KEY"]
|
|
},
|
|
"providerAuthChoices": [
|
|
{
|
|
"provider": "openai-codex",
|
|
"method": "oauth",
|
|
"choiceId": "openai-codex",
|
|
"deprecatedChoiceIds": ["codex-cli", "openai-codex-import"],
|
|
"choiceLabel": "OpenAI Codex Browser Login",
|
|
"choiceHint": "Sign in with OpenAI in your browser",
|
|
"assistantPriority": -30,
|
|
"groupId": "openai-codex",
|
|
"groupLabel": "OpenAI Codex",
|
|
"groupHint": "ChatGPT/Codex sign-in"
|
|
},
|
|
{
|
|
"provider": "openai-codex",
|
|
"method": "device-code",
|
|
"choiceId": "openai-codex-device-code",
|
|
"choiceLabel": "OpenAI Codex Device Pairing",
|
|
"choiceHint": "Pair in browser with a device code",
|
|
"assistantPriority": -10,
|
|
"groupId": "openai-codex",
|
|
"groupLabel": "OpenAI Codex",
|
|
"groupHint": "ChatGPT/Codex sign-in"
|
|
},
|
|
{
|
|
"provider": "openai",
|
|
"method": "api-key",
|
|
"choiceId": "openai-api-key",
|
|
"choiceLabel": "OpenAI API Key",
|
|
"assistantPriority": -40,
|
|
"groupId": "openai",
|
|
"groupLabel": "OpenAI",
|
|
"groupHint": "Direct API key",
|
|
"optionKey": "openaiApiKey",
|
|
"cliFlag": "--openai-api-key",
|
|
"cliOption": "--openai-api-key <key>",
|
|
"cliDescription": "OpenAI API Key"
|
|
}
|
|
],
|
|
"contracts": {
|
|
"speechProviders": ["openai"],
|
|
"realtimeTranscriptionProviders": ["openai"],
|
|
"realtimeVoiceProviders": ["openai"],
|
|
"memoryEmbeddingProviders": ["openai"],
|
|
"mediaUnderstandingProviders": ["openai", "openai-codex"],
|
|
"imageGenerationProviders": ["openai"],
|
|
"videoGenerationProviders": ["openai"]
|
|
},
|
|
"mediaUnderstandingProviderMetadata": {
|
|
"openai": {
|
|
"capabilities": ["image", "audio"],
|
|
"defaultModels": {
|
|
"image": "gpt-5.4-mini",
|
|
"audio": "gpt-4o-transcribe"
|
|
},
|
|
"autoPriority": {
|
|
"image": 10,
|
|
"audio": 10
|
|
}
|
|
},
|
|
"openai-codex": {
|
|
"capabilities": ["image"],
|
|
"defaultModels": {
|
|
"image": "gpt-5.5"
|
|
}
|
|
}
|
|
},
|
|
"configSchema": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"personality": {
|
|
"type": "string",
|
|
"enum": ["friendly", "on", "off"],
|
|
"default": "friendly",
|
|
"description": "Legacy compatibility fallback for the shared GPT-5 friendly interaction-style overlay. Prefer agents.defaults.promptOverlays.gpt5.personality. `friendly` and `on` enable the style overlay; `off` disables only that style layer."
|
|
}
|
|
}
|
|
}
|
|
}
|