• Tashfeen's avatar
    fix(cloudflare): normalize null content to empty string for tool round-trips · 4c149373
    Tashfeen authored
    Cloudflare's OpenAI-compat endpoint rejects assistant messages with
    content: null, even when tool_calls are present (standard OpenAI format).
    Added normalizeMessages() that converts null content to "" before dispatch,
    plus a regression test covering the null-content + tool_calls case.
    
    Also credits @moaaz12-web in README Contributors for the tool-calling PR.
    4c149373
Name
Last commit
Last update
..
base.ts Loading commit data...
cerebras.ts Loading commit data...
cloudflare.ts Loading commit data...
cohere.ts Loading commit data...
google.ts Loading commit data...
groq.ts Loading commit data...
huggingface.ts Loading commit data...
index.ts Loading commit data...
openai-compat.ts Loading commit data...