Repository navigation
Closed
Description
TanStack AI version
v0.2.0
Framework/Library version
hono 1.19.6
Describe the bug and the steps to reproduce it
Try
const adapter = openaiText("gpt-5.2-chat", {
apiKey: process.env.OPENAI_API_KEY,
})but it fails saying the model is not available.
>>> chatStream: Fatal error during response creation <<<
>>> Error message: 400 The requested model 'gpt-5.2-chat' does not exist.
>>> Error stack: Error: 400 The requested model 'gpt-5.2-chat' does not exist.
at APIError.generate (/Users/b/c/flightcontrol2/node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/openai/src/core/error.ts:72:14)
at OpenAI.makeStatusError (/Users/b/c/flightcontrol2/node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/openai/src/client.ts:478:28)
at OpenAI.makeRequest (/Users/b/c/flightcontrol2/node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/openai/src/client.ts:728:24)
at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
at async OpenAITextAdapter.chatStream (/Users/b/c/flightcontrol2/node_modules/.pnpm/@[email protected]_@[email protected][email protected][email protected]/node_modules/@tanstack/ai-openai/src/adapters/text.ts:109:24)
Change to this and it works
const adapter = openaiText("gpt-5.2-chat-latest" as "gpt-5.2-chat", {
apiKey: process.env.OPENAI_API_KEY,
})Your Minimal, Reproducible Example - (Sandbox Highly Recommended)
.
Screenshots or Videos (Optional)
No response
Do you intend to try to help solve this bug with your own PR?
None
Terms & Code of Conduct
- I agree to follow this project's Code of Conduct
- I understand that if my bug cannot be reliable reproduced in a debuggable environment, it will probably not be fixed and this issue may even be closed.
Reacted by coderabbitai
Metadata
Metadata
Assignees
Labels
No labels
Activity
coderabbitai commentedon Dec 22, 2025
📝 CodeRabbit Plan Mode
Generate an implementation plan and prompts that you can use with your favorite coding agent.
Examples
🔗 Related PRs
#166 - add gpt 5.2 models to model meta [merged]
👤 Suggested Assignees
🧪 Issue enrichment is currently in open beta.
You can configure auto-planning by selecting labels in the issue_enrichment configuration.
To disable automatic issue enrichment, add the following to your
.coderabbit.yaml:💬 Have feedback or questions? Drop into our discord or schedule a call!