File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
src/api/providers/__tests__ Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import { Anthropic } from "@anthropic-ai/sdk"
44
55import { type ModelInfo , geminiDefaultModelId } from "@roo-code/types"
66
7+ import { t } from "i18next"
78import { GeminiHandler } from "../gemini"
89
910const GEMINI_20_FLASH_THINKING_NAME = "gemini-2.0-flash-thinking-exp-1219"
@@ -129,7 +130,7 @@ describe("GeminiHandler", () => {
129130 ; ( handler [ "client" ] . models . generateContent as any ) . mockRejectedValue ( mockError )
130131
131132 await expect ( handler . completePrompt ( "Test prompt" ) ) . rejects . toThrow (
132- "Gemini completion error: Gemini API error",
133+ t ( "common:errors.gemini.generate_complete_prompt" , { error : " Gemini API error" } ) ,
133134 )
134135 } )
135136
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import { Anthropic } from "@anthropic-ai/sdk"
77
88import { ApiStreamChunk } from "../../transform/stream"
99
10+ import { t } from "i18next"
1011import { VertexHandler } from "../vertex"
1112
1213describe ( "VertexHandler" , ( ) => {
@@ -105,7 +106,7 @@ describe("VertexHandler", () => {
105106 ; ( handler [ "client" ] . models . generateContent as any ) . mockRejectedValue ( mockError )
106107
107108 await expect ( handler . completePrompt ( "Test prompt" ) ) . rejects . toThrow (
108- "Gemini completion error: Vertex API error",
109+ t ( "common:errors.gemini.generate_complete_prompt" , { error : " Vertex API error" } ) ,
109110 )
110111 } )
111112
You can’t perform that action at this time.
0 commit comments