Skip to content

Feat/mistral structured output#3

Merged
mathieuripert merged 7 commits into
mainfrom
feat/mistral-structured-output
May 26, 2025
Merged

Feat/mistral structured output#3
mathieuripert merged 7 commits into
mainfrom
feat/mistral-structured-output

Conversation

@mathieuripert
Copy link
Copy Markdown
Owner

No description provided.

mathieuripert and others added 7 commits May 25, 2025 20:20
* Fix ContentPart migration compatibility across chat models - Add missing ContentPart handling in ChatOllamaAI, ChatMistralAI, ChatPerplexity, ChatOpenAI, ChatVertexAI, and ChatGoogleAI - Add extract_content_text helper functions to handle both string and ContentPart list content - Fix system message handling in ChatVertexAI and ChatGoogleAI for ContentPart structures - Update test expectations to use ContentPart.text!() format instead of plain strings - Ensure all chat models properly handle the migration from string content to ContentPart lists - Resolve 19 test failures related to content format mismatches - All tests now pass with the new ContentPart-based message content structure

* Update chat_google_ai.ex

* reuse ContentPart.parts_to_string/1 instead of extract_content_text

* simplify cases

* simplify ollama

* Update chat_perplexity.ex

* Update chat_vertex_ai.ex

* Update chat_vertex_ai_test.exs
…nse and json_schema fields to enable structured JSON output - Support both json_object and json_schema response formats per Mistral API - Add comprehensive test coverage including live API tests - Update serialization/deserialization to include new fields - Maintain backward compatibility with existing functionality
@mathieuripert mathieuripert merged commit 7262e1b into main May 26, 2025
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.

3 participants