OpenAI GPT-5 improvements (#9)

A series of fixes for making GPT-5 reliable and effective with anyclaude.

## UX changes

- Converts opaque OpenAI service errors into 429s so CC natively retries instead of failing. These are very common.
- Rich debugging support via `ANYCLAUDE_DEBUG`
- Supports specifying reasoning effort and service tier 

## Codebase

- Added CI

## Remaining issues

- GPT-5 often fails to use the native tool calls. These failures seems intermittent.
This commit is contained in:
Ammar Bandukwala 2025-08-10 15:50:08 -05:00 • committed by GitHub
commit f42e03937e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 802 additions and 24 deletions

View file

@ -31,6 +31,12 @@
"description": "Run Claude Code with OpenAI, Google, xAI, and others.",
"license": "MIT",
"scripts": {
"build": "bun build --target node --outfile dist/main.js ./src/main.ts --format cjs --external ai --external @ai-sdk/* --external zod && node -e \"const fs=require('fs');const p='dist/main.js';fs.writeFileSync(p,'#!/usr/bin/env node\\n'+fs.readFileSync(p,'utf8'))\" && chmod +x dist/main.js"
"build": "bun build --target node --outfile dist/main.js ./src/main.ts --format cjs --external ai --external @ai-sdk/* --external zod && node -e \"const fs=require('fs');const p='dist/main.js';fs.writeFileSync(p,'#!/usr/bin/env node\\n'+fs.readFileSync(p,'utf8'))\" && chmod +x dist/main.js",
"test": "bun test",
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@types/yargs-parser": "^21.0.3",
"yargs-parser": "^22.0.0"
}
}