Skip to content

feat: add support for mistral #291

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

feat: add support for mistral #291

wants to merge 1 commit into from

Conversation

chr-hertel
Copy link
Member

@chr-hertel chr-hertel commented Apr 22, 2025

  • text generation
  • streaming
  • tool calling
  • image input
  • structured output
  • embeddings
  • examples
  • documentation

Implementation is basically functional, but has following flaws to be resolved:

  1. tool schema differs in a breaking way from GPT - extension point is a MUST
  2. duplication of stream, message conversion and tool calling
  3. error handling - once again

Sorry, something went wrong.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sooo much duplication with the GPT one ...

Comment on lines +44 to +46
} else {
// ⚠ Necessary for Mistral, but breaks OpenAI ⚠
$function['parameters'] = ['type' => 'object'];
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this needs a better solution

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

test failure is real

@chr-hertel chr-hertel force-pushed the feat-mistral branch 4 times, most recently from 737be86 to 009944f Compare May 1, 2025 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant