After upgrading Claude Code from 2.1.263 to 2.1.265, every request sent through claude-code-proxy fails with the following error:
⏺ API Error: 400 Invalid schema for function 'Artifact':
'^(?!__.*__$)[^\\p{Cc}\\p{Cf}\\p{Zl}\\p{Zp}"\\\\./[\\]]{1,200}$' is not a 'regex'.
This happens even for a trivial prompt such as:
Downgrading Claude Code back to 2.1.263 immediately fixes the problem with no other configuration changes.
Environment
-
claude-code-proxy: 0.1.36
-
Claude Code working version: 2.1.263
-
Claude Code failing version: 2.1.265
-
API provider: official OpenAI endpoint
-
Models tested:
The issue occurs with both models.
Steps to reproduce
- Run
claude-code-proxy 0.1.36 against the official OpenAI API.
- Use Claude Code 2.1.265.
- Send a simple prompt such as
Hello.
- The request fails with:
API Error: 400 Invalid schema for function 'Artifact':
'^(?!__.*__$)[^\\p{Cc}\\p{Cf}\\p{Zl}\\p{Zp}"\\\\./[\\]]{1,200}$' is not a 'regex'.
- Downgrade Claude Code to 2.1.263.
- Send the same prompt with the same proxy configuration and model.
- The request succeeds normally.
After upgrading Claude Code from 2.1.263 to 2.1.265, every request sent through
claude-code-proxyfails with the following error:This happens even for a trivial prompt such as:
Downgrading Claude Code back to 2.1.263 immediately fixes the problem with no other configuration changes.
Environment
claude-code-proxy: 0.1.36Claude Code working version: 2.1.263
Claude Code failing version: 2.1.265
API provider: official OpenAI endpoint
Models tested:
gpt-5.6-lunagpt-6-astraThe issue occurs with both models.
Steps to reproduce
claude-code-proxy0.1.36 against the official OpenAI API.Hello.