-
Notifications
You must be signed in to change notification settings - Fork 0
add google roundtrip #70
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
base: 01-28-testing_framework_for_transformrequest_response
Are you sure you want to change the base?
add google roundtrip #70
Conversation
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
52805d2 to
af4a595
Compare
1feefc7 to
8288bf4
Compare
8288bf4 to
68f389d
Compare
| @@ -0,0 +1,73 @@ | |||
| use crate::providers::google::generated::{ | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
start at this file, this is where we grab all the testcases and roundtrip them. this automatically tests google/convert.rs
| encrypted_content: Option<String>, | ||
| #[ts(optional)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
encrypted_content is used by both anthropic/google so i think it should be a universal type.
| GOOGLE_MODEL, | ||
| } from "../../cases"; | ||
|
|
||
| const GOOGLE_API_BASE = "https://generativelanguage.googleapis.com/v1beta"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the genai TS sdk isn't just a stainless sdk where it just wraps openapi.
They do a bunch of transforms in the SDK so I'm using the HTTP API instead since the generated types reflect the HTTP API.
68f389d to
1b05794
Compare
1b05794 to
a2f07da
Compare
4325ef5 to
b710035
Compare
a2f07da to
6ebb6ec
Compare
b710035 to
21f7e1f
Compare
6ebb6ec to
417af3b
Compare

This PR adds google roundtrip tests for existing google cases in the repository.
Note:
In order to conform the existing cases to the generated schema at https://github.com/braintrustdata/lingua/blob/main/crates/lingua/src/providers/google/generated.rs, we have to update the
capture.tsGoogle executor to use the HTTP API instead ofgenaisdk.