File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
src/extension/byok/vscode-node Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ export abstract class BaseOpenAICompatibleLMProvider implements BYOKModelProvide
22
22
public readonly authType : BYOKAuthType ,
23
23
private readonly _name : string ,
24
24
private readonly _baseUrl : string ,
25
- private _knownModels : BYOKKnownModels | undefined ,
25
+ protected _knownModels : BYOKKnownModels | undefined ,
26
26
private readonly _byokStorageService : IBYOKStorageService ,
27
27
@IFetcherService protected readonly _fetcherService : IFetcherService ,
28
28
@ILogService protected readonly _logService : ILogService ,
Original file line number Diff line number Diff line change @@ -38,11 +38,12 @@ export class OpenRouterLMProvider extends BaseOpenAICompatibleLMProvider {
38
38
knownModels [ model . id ] = {
39
39
name : model . name ,
40
40
toolCalling : model . supported_parameters ?. includes ( 'tools' ) ?? false ,
41
- vision : model . input_modalities ?. includes ( 'image' ) ?? false ,
41
+ vision : model . architecture ?. input_modalities ?. includes ( 'image' ) ?? false ,
42
42
maxInputTokens : model . top_provider . context_length - 16000 ,
43
43
maxOutputTokens : 16000
44
44
} ;
45
45
}
46
+ this . _knownModels = knownModels ;
46
47
return knownModels ;
47
48
} catch ( error ) {
48
49
this . _logService . error ( error , `Error fetching available OpenRouter models` ) ;
You can’t perform that action at this time.
0 commit comments