add google roundtrip#70
add google roundtrip#70knjiang wants to merge 1 commit into01-28-testing_framework_for_transformrequest_responsefrom
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.
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.
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.
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
d09967b to
13cb50c
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.