Files
9router/open-sse/providers/registry/openai.js
T
decoluaandCursor 5a042840fd refactor(open-sse): P3 provider registry — split into providers/registry/{id}.js
- 100 registry files: transport + models co-located per provider (Mongoose-style)
- providers/shared.js: shared Claude headers + OS/arch helpers (deduped)
- providers/models/helpers.js: withCodexReviewModels (kept dynamic)
- providers/index.js builds PROVIDERS + PROVIDER_MODELS = old API (content byte-for-byte)
- config/providers.js + providerModels.js → barrel re-export, keep accessors + runtime helpers
- Verified: PROVIDERS/MODELS/OAuth/alias byte-for-byte, golden translator tests pass, 0 new regression

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-13 21:08:37 +07:00

185 lines
3.1 KiB
JavaScript

export default {
"id": "openai",
"alias": "openai",
"transport": {
"baseUrl": "https://api.openai.com/v1/chat/completions"
},
"models": [
{
"id": "gpt-5.4",
"name": "GPT-5.4"
},
{
"id": "gpt-5.4-mini",
"name": "GPT-5.4 Mini"
},
{
"id": "gpt-5.4-nano",
"name": "GPT-5.4 Nano"
},
{
"id": "gpt-5.2",
"name": "GPT-5.2"
},
{
"id": "gpt-5.1",
"name": "GPT-5.1"
},
{
"id": "gpt-5",
"name": "GPT-5"
},
{
"id": "gpt-5-mini",
"name": "GPT-5 Mini"
},
{
"id": "gpt-5-nano",
"name": "GPT-5 Nano"
},
{
"id": "gpt-4o",
"name": "GPT-4o"
},
{
"id": "gpt-4o-mini",
"name": "GPT-4o Mini"
},
{
"id": "gpt-4-turbo",
"name": "GPT-4 Turbo"
},
{
"id": "gpt-4.1",
"name": "GPT-4.1"
},
{
"id": "gpt-4.1-mini",
"name": "GPT-4.1 Mini"
},
{
"id": "gpt-4.1-nano",
"name": "GPT-4.1 Nano"
},
{
"id": "o3",
"name": "O3"
},
{
"id": "o3-mini",
"name": "O3 Mini"
},
{
"id": "o3-pro",
"name": "O3 Pro"
},
{
"id": "o4-mini",
"name": "O4 Mini"
},
{
"id": "o1",
"name": "O1"
},
{
"id": "o1-mini",
"name": "O1 Mini"
},
{
"id": "text-embedding-3-large",
"name": "Text Embedding 3 Large",
"type": "embedding"
},
{
"id": "text-embedding-3-small",
"name": "Text Embedding 3 Small",
"type": "embedding"
},
{
"id": "text-embedding-ada-002",
"name": "Text Embedding Ada 002",
"type": "embedding"
},
{
"id": "tts-1",
"name": "TTS-1",
"type": "tts"
},
{
"id": "tts-1-hd",
"name": "TTS-1 HD",
"type": "tts"
},
{
"id": "gpt-4o-mini-tts",
"name": "GPT-4o Mini TTS",
"type": "tts"
},
{
"id": "whisper-1",
"name": "Whisper 1",
"type": "stt",
"params": [
"language",
"response_format",
"temperature",
"prompt"
]
},
{
"id": "gpt-4o-transcribe",
"name": "GPT-4o Transcribe",
"type": "stt",
"params": [
"language",
"response_format",
"temperature",
"prompt"
]
},
{
"id": "gpt-4o-mini-transcribe",
"name": "GPT-4o Mini Transcribe",
"type": "stt",
"params": [
"language",
"response_format",
"temperature",
"prompt"
]
},
{
"id": "gpt-image-1",
"name": "GPT Image 1",
"type": "image",
"params": [
"n",
"size",
"quality",
"response_format"
]
},
{
"id": "dall-e-3",
"name": "DALL-E 3",
"type": "image",
"params": [
"size",
"quality",
"style",
"response_format"
]
},
{
"id": "dall-e-2",
"name": "DALL-E 2",
"type": "image",
"params": [
"n",
"size",
"response_format"
]
}
]
};