Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

simplify message format, improve unofficial-openai provider compatibility #661

Merged
merged 2 commits into from
Jul 7, 2024

Conversation

tarasglek
Copy link
Owner

@tarasglek tarasglek commented Jul 7, 2024

A lot of providers don't like it when typeof(message.content) != "string". We only send complex .content when sending images now.

This fixes llama.cpp, deepseek and possibly other providers.

Copy link

cloudflare-workers-and-pages bot commented Jul 7, 2024

Deploying chatcraft-org with  Cloudflare Pages  Cloudflare Pages

Latest commit: 76bc1d4
Status: ✅  Deploy successful!
Preview URL: https://b704e6da.console-overthinker-dev.pages.dev
Branch Preview URL: https://taras-better-compat.console-overthinker-dev.pages.dev

View logs

@tarasglek tarasglek changed the title simplify message format to expand openai compatibility simplify message format, improve unofficial-openai provider compatibility Jul 7, 2024
@tarasglek tarasglek merged commit 223b2ef into main Jul 7, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant