mirror of https://github.com/openclaw/openclaw.git
58 lines
1.6 KiB
JSON
58 lines
1.6 KiB
JSON
{
|
|
"id": "openai",
|
|
"enabledByDefault": true,
|
|
"providers": ["openai", "openai-codex"],
|
|
"modelSupport": {
|
|
"modelPrefixes": ["gpt-", "o1", "o3", "o4"]
|
|
},
|
|
"cliBackends": ["codex-cli"],
|
|
"providerAuthEnvVars": {
|
|
"openai": ["OPENAI_API_KEY"]
|
|
},
|
|
"providerAuthChoices": [
|
|
{
|
|
"provider": "openai-codex",
|
|
"method": "oauth",
|
|
"choiceId": "openai-codex",
|
|
"deprecatedChoiceIds": ["codex-cli"],
|
|
"choiceLabel": "OpenAI Codex (ChatGPT OAuth)",
|
|
"choiceHint": "Browser sign-in",
|
|
"groupId": "openai",
|
|
"groupLabel": "OpenAI",
|
|
"groupHint": "Codex OAuth + API key"
|
|
},
|
|
{
|
|
"provider": "openai",
|
|
"method": "api-key",
|
|
"choiceId": "openai-api-key",
|
|
"choiceLabel": "OpenAI API key",
|
|
"groupId": "openai",
|
|
"groupLabel": "OpenAI",
|
|
"groupHint": "Codex OAuth + API key",
|
|
"optionKey": "openaiApiKey",
|
|
"cliFlag": "--openai-api-key",
|
|
"cliOption": "--openai-api-key <key>",
|
|
"cliDescription": "OpenAI API key"
|
|
}
|
|
],
|
|
"contracts": {
|
|
"speechProviders": ["openai"],
|
|
"realtimeTranscriptionProviders": ["openai"],
|
|
"realtimeVoiceProviders": ["openai"],
|
|
"mediaUnderstandingProviders": ["openai", "openai-codex"],
|
|
"imageGenerationProviders": ["openai"]
|
|
},
|
|
"configSchema": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"personalityOverlay": {
|
|
"type": "string",
|
|
"enum": ["friendly", "off"],
|
|
"default": "friendly",
|
|
"description": "Controls the default OpenAI-specific prompt overlay used for OpenAI and OpenAI Codex runs."
|
|
}
|
|
}
|
|
}
|
|
}
|