• 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
.github/workflows Loading commit data...
client Loading commit data...
repo-assets Loading commit data...
server Loading commit data...
shared Loading commit data...
.env.example Loading commit data...
.gitignore Loading commit data...
LICENSE Loading commit data...
README.md Loading commit data...
free-ai-apis.pdf Loading commit data...
free-ai-apis.typ Loading commit data...
package-lock.json Loading commit data...
package.json Loading commit data...