@@ -127,7 +127,7 @@ export function modelPrefersJsonNotebookRepresentation(model: LanguageModelChat
127127 * Model supports replace_string_in_file as an edit tool.
128128 */
129129export function modelSupportsReplaceString ( model : LanguageModelChat | IChatEndpoint ) : boolean {
130- return model . family . includes ( 'gemini' ) || model . family . includes ( 'grok-code' ) || modelSupportsMultiReplaceString ( model ) || isHiddenModelF ( model ) ;
130+ return model . family . toLowerCase ( ) . includes ( 'gemini' ) || model . family . includes ( 'grok-code' ) || modelSupportsMultiReplaceString ( model ) || isHiddenModelF ( model ) ;
131131}
132132
133133/**
@@ -142,7 +142,7 @@ export function modelSupportsMultiReplaceString(model: LanguageModelChat | IChat
142142 * without needing insert_edit_into_file.
143143 */
144144export function modelCanUseReplaceStringExclusively ( model : LanguageModelChat | IChatEndpoint ) : boolean {
145- return isAnthropicFamily ( model ) || model . family . includes ( 'grok-code' ) || isHiddenModelE ( model ) || model . family . includes ( 'gemini-3' ) || isVSCModelC ( model ) || isHiddenModelF ( model ) ;
145+ return isAnthropicFamily ( model ) || model . family . includes ( 'grok-code' ) || isHiddenModelE ( model ) || model . family . toLowerCase ( ) . includes ( 'gemini-3' ) || isVSCModelC ( model ) || isHiddenModelF ( model ) ;
146146}
147147
148148/**
@@ -157,14 +157,14 @@ export function modelShouldUseReplaceStringHealing(model: LanguageModelChat | IC
157157 * The model can accept image urls as the `image_url` parameter in mcp tool results.
158158 */
159159export function modelCanUseMcpResultImageURL ( model : LanguageModelChat | IChatEndpoint ) : boolean {
160- return ! isAnthropicFamily ( model ) && ! model . family . startsWith ( 'gemini' ) && ! isHiddenModelE ( model ) && ! isHiddenModelF ( model ) ;
160+ return ! isAnthropicFamily ( model ) && ! model . family . toLowerCase ( ) . startsWith ( 'gemini' ) && ! isHiddenModelE ( model ) && ! isHiddenModelF ( model ) ;
161161}
162162
163163/**
164164 * The model can accept image urls as the `image_url` parameter in requests.
165165 */
166166export function modelCanUseImageURL ( model : LanguageModelChat | IChatEndpoint ) : boolean {
167- return ! model . family . startsWith ( 'gemini' ) && ! isHiddenModelF ( model ) ;
167+ return ! model . family . toLowerCase ( ) . startsWith ( 'gemini' ) && ! isHiddenModelF ( model ) ;
168168}
169169
170170/**
0 commit comments