@@ -27,7 +27,7 @@ const (
2727 DefaultAnthropicModel = "claude-sonnet-4-5"
2828 DefaultOpenAIModel = "gpt-5.1"
2929 DefaultOpenRouterModel = "mistralai/mistral-small-3.2-24b-instruct"
30- DefaultGeminiModel = "gemini-2.0-flash-exp "
30+ DefaultGeminiModel = "gemini-3-pro-preview "
3131)
3232
3333// TestResponseWriter implements http.ResponseWriter and additional interfaces for testing
@@ -374,6 +374,12 @@ func testT3(ctx context.Context) {
374374 testOpenAIComp (ctx , "gpt-4o" , "what is 2+2? please be brief" , nil )
375375}
376376
377+ func testT4 (ctx context.Context ) {
378+ tool := aiusechat .GetAdderToolDefinition ()
379+ tools := []uctypes.ToolDefinition {tool }
380+ testGemini (ctx , DefaultGeminiModel , "what is 2+2+8, use the provider adder tool" , tools )
381+ }
382+
377383func printUsage () {
378384 fmt .Println ("Usage: go run main-testai.go [--anthropic|--openaicomp|--openrouter|--gemini] [--tools] [--model <model>] [message]" )
379385 fmt .Println ("Examples:" )
@@ -403,7 +409,7 @@ func printUsage() {
403409}
404410
405411func main () {
406- var anthropic , openaicomp , openrouter , gemini , tools , help , t1 , t2 , t3 bool
412+ var anthropic , openaicomp , openrouter , gemini , tools , help , t1 , t2 , t3 , t4 bool
407413 var model string
408414 flag .BoolVar (& anthropic , "anthropic" , false , "Use Anthropic API instead of OpenAI" )
409415 flag .BoolVar (& openaicomp , "openaicomp" , false , "Use OpenAI Completions API" )
@@ -414,7 +420,8 @@ func main() {
414420 flag .BoolVar (& help , "help" , false , "Show usage information" )
415421 flag .BoolVar (& t1 , "t1" , false , fmt .Sprintf ("Run preset T1 test (%s with 'what is 2+2')" , DefaultAnthropicModel ))
416422 flag .BoolVar (& t2 , "t2" , false , fmt .Sprintf ("Run preset T2 test (%s with 'what is 2+2')" , DefaultOpenAIModel ))
417- flag .BoolVar (& t3 , "t3" , false , "Run preset T3 test (OpenAI Completions API with gpt-4o)" )
423+ flag .BoolVar (& t3 , "t3" , false , "Run preset T3 test (OpenAI Completions API with gpt-5.1)" )
424+ flag .BoolVar (& t4 , "t4" , false , "Run preset T4 test (OpenAI Completions API with gemini-3-pro-preview)" )
418425 flag .Parse ()
419426
420427 if help {
@@ -437,6 +444,10 @@ func main() {
437444 testT3 (ctx )
438445 return
439446 }
447+ if t4 {
448+ testT4 (ctx )
449+ return
450+ }
440451
441452 // Set default model based on API type if not provided
442453 if model == "" {
0 commit comments