Commit Graph
8 Commits
Author SHA1 Message Date
cyhhao aa1a3b9a74 fix: update OpenCode use-key examples 2026-01-11 20:29:32 +08:00
cyhhao abbde130ab Revert Codex OAuth fallback handling 2026-01-11 18:43:47 +08:00
cyhhao 80c1cdf024 fix(lint): trim unused codex helpers 2026-01-10 22:45:29 +08:00
cyhhao 1a641392d9 Merge up/main 2026-01-10 21:57:57 +08:00
cyhhao 36b817d008 Align OAuth transform with OpenCode instructions 2026-01-10 20:53:16 +08:00
cyhhao eb06006d6c Make Codex CLI passthrough 2026-01-10 03:12:56 +08:00
cyhhao 7a06c4873e Fix Codex OAuth tool mapping 2026-01-09 18:35:58 +08:00
cyhhao 5b8d4fb047 feat(openai): add AI SDK content format compatibility for OAuth accounts
- Add normalizeInputForCodexAPI function to convert AI SDK multi-part
  content format to simplified format expected by ChatGPT Codex API
- AI SDK sends: {"content": [{"type": "input_text", "text": "..."}]}
- Codex API expects: {"content": "..."}
- Only applies to OAuth accounts (ChatGPT internal API)
- API Key accounts remain unchanged (OpenAI Platform API supports both)
2026-01-09 00:34:49 +08:00