@@ -23,11 +23,38 @@ internal class SessionActParamsTest {
2323 .modelName(" openai/gpt-5.4-mini" )
2424 .apiKey(" sk-some-openai-api-key" )
2525 .baseUrl(" https://api.openai.com/v1" )
26+ .googleAuthOptions(
27+ ModelConfig .GoogleAuthOptions .builder()
28+ .credentials(
29+ ModelConfig .GoogleAuthOptions .Credentials .builder()
30+ .clientEmail(" client_email" )
31+ .privateKey(" private_key" )
32+ .authProviderX509CertUrl(" https://example.com" )
33+ .authUri(" https://example.com" )
34+ .clientId(" client_id" )
35+ .clientX509CertUrl(" https://example.com" )
36+ .privateKeyId(" private_key_id" )
37+ .projectId(" project_id" )
38+ .tokenUri(" https://example.com" )
39+ .type(
40+ ModelConfig .GoogleAuthOptions .Credentials .Type
41+ .SERVICE_ACCOUNT
42+ )
43+ .universeDomain(" universe_domain" )
44+ .build()
45+ )
46+ .projectId(" projectId" )
47+ .scopes(" string" )
48+ .universeDomain(" universeDomain" )
49+ .build()
50+ )
2651 .headers(
2752 ModelConfig .Headers .builder()
2853 .putAdditionalProperty(" foo" , JsonValue .from(" string" ))
2954 .build()
3055 )
56+ .location(" us-central1" )
57+ .project(" my-gcp-project" )
3158 .provider(ModelConfig .Provider .OPENAI )
3259 .build()
3360 )
@@ -79,11 +106,38 @@ internal class SessionActParamsTest {
79106 .modelName(" openai/gpt-5.4-mini" )
80107 .apiKey(" sk-some-openai-api-key" )
81108 .baseUrl(" https://api.openai.com/v1" )
109+ .googleAuthOptions(
110+ ModelConfig .GoogleAuthOptions .builder()
111+ .credentials(
112+ ModelConfig .GoogleAuthOptions .Credentials .builder()
113+ .clientEmail(" client_email" )
114+ .privateKey(" private_key" )
115+ .authProviderX509CertUrl(" https://example.com" )
116+ .authUri(" https://example.com" )
117+ .clientId(" client_id" )
118+ .clientX509CertUrl(" https://example.com" )
119+ .privateKeyId(" private_key_id" )
120+ .projectId(" project_id" )
121+ .tokenUri(" https://example.com" )
122+ .type(
123+ ModelConfig .GoogleAuthOptions .Credentials .Type
124+ .SERVICE_ACCOUNT
125+ )
126+ .universeDomain(" universe_domain" )
127+ .build()
128+ )
129+ .projectId(" projectId" )
130+ .scopes(" string" )
131+ .universeDomain(" universeDomain" )
132+ .build()
133+ )
82134 .headers(
83135 ModelConfig .Headers .builder()
84136 .putAdditionalProperty(" foo" , JsonValue .from(" string" ))
85137 .build()
86138 )
139+ .location(" us-central1" )
140+ .project(" my-gcp-project" )
87141 .provider(ModelConfig .Provider .OPENAI )
88142 .build()
89143 )
@@ -139,11 +193,38 @@ internal class SessionActParamsTest {
139193 .modelName(" openai/gpt-5.4-mini" )
140194 .apiKey(" sk-some-openai-api-key" )
141195 .baseUrl(" https://api.openai.com/v1" )
196+ .googleAuthOptions(
197+ ModelConfig .GoogleAuthOptions .builder()
198+ .credentials(
199+ ModelConfig .GoogleAuthOptions .Credentials .builder()
200+ .clientEmail(" client_email" )
201+ .privateKey(" private_key" )
202+ .authProviderX509CertUrl(" https://example.com" )
203+ .authUri(" https://example.com" )
204+ .clientId(" client_id" )
205+ .clientX509CertUrl(" https://example.com" )
206+ .privateKeyId(" private_key_id" )
207+ .projectId(" project_id" )
208+ .tokenUri(" https://example.com" )
209+ .type(
210+ ModelConfig .GoogleAuthOptions .Credentials .Type
211+ .SERVICE_ACCOUNT
212+ )
213+ .universeDomain(" universe_domain" )
214+ .build()
215+ )
216+ .projectId(" projectId" )
217+ .scopes(" string" )
218+ .universeDomain(" universeDomain" )
219+ .build()
220+ )
142221 .headers(
143222 ModelConfig .Headers .builder()
144223 .putAdditionalProperty(" foo" , JsonValue .from(" string" ))
145224 .build()
146225 )
226+ .location(" us-central1" )
227+ .project(" my-gcp-project" )
147228 .provider(ModelConfig .Provider .OPENAI )
148229 .build()
149230 )
@@ -179,11 +260,38 @@ internal class SessionActParamsTest {
179260 .modelName(" openai/gpt-5.4-mini" )
180261 .apiKey(" sk-some-openai-api-key" )
181262 .baseUrl(" https://api.openai.com/v1" )
263+ .googleAuthOptions(
264+ ModelConfig .GoogleAuthOptions .builder()
265+ .credentials(
266+ ModelConfig .GoogleAuthOptions .Credentials .builder()
267+ .clientEmail(" client_email" )
268+ .privateKey(" private_key" )
269+ .authProviderX509CertUrl(" https://example.com" )
270+ .authUri(" https://example.com" )
271+ .clientId(" client_id" )
272+ .clientX509CertUrl(" https://example.com" )
273+ .privateKeyId(" private_key_id" )
274+ .projectId(" project_id" )
275+ .tokenUri(" https://example.com" )
276+ .type(
277+ ModelConfig .GoogleAuthOptions .Credentials .Type
278+ .SERVICE_ACCOUNT
279+ )
280+ .universeDomain(" universe_domain" )
281+ .build()
282+ )
283+ .projectId(" projectId" )
284+ .scopes(" string" )
285+ .universeDomain(" universeDomain" )
286+ .build()
287+ )
182288 .headers(
183289 ModelConfig .Headers .builder()
184290 .putAdditionalProperty(" foo" , JsonValue .from(" string" ))
185291 .build()
186292 )
293+ .location(" us-central1" )
294+ .project(" my-gcp-project" )
187295 .provider(ModelConfig .Provider .OPENAI )
188296 .build()
189297 )
0 commit comments