-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Google AI system prompt JSON (#1374)
<!-- ELLIPSIS_HIDDEN --> > [!IMPORTANT] > Fix JSON structure in Google AI client, add GeminiOpenAiGeneric client, and introduce new test functions for Gemini in multiple files. > > - **Behavior**: > - Fix JSON structure in `googleai_client.rs` by renaming `system_instructions` to `system_instruction` and wrapping `parts` in a JSON object. > - Rename `messages` to `contents` in `googleai_client.rs`. > - **Clients**: > - Add `GeminiOpenAiGeneric` client in `clients.baml` with `openai-generic` provider. > - **Functions**: > - Add `TestGeminiSystemAsChat` and `TestGeminiOpenAiGeneric` functions in `test-files/providers/gemini.baml`. > - Add corresponding async and sync functions in `async_client.py`, `sync_client.py`, and `client.rb`. > - **Tests**: > - Add tests for `TestGeminiSystemAsChat` and `TestGeminiOpenAiGeneric` in `test_functions.py`. > > <sup>This description was created by </sup>[<img alt="Ellipsis" src="https://img.shields.io/badge/Ellipsis-blue?color=175173">](https://www.ellipsis.dev?ref=BoundaryML%2Fbaml&utm_source=github&utm_medium=referral)<sup> for b2e08a4. It will automatically update as commits are pushed.</sup> <!-- ELLIPSIS_HIDDEN -->
- Loading branch information
1 parent
1addb34
commit fe366fe
Showing
12 changed files
with
566 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.