File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed
multimodal/tarko/agent-cli Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ export function addCommonOptions(command: Command): Command {
5050 'LLM provider name (deprecated, replaced by `--model.provider`)' ,
5151 )
5252 . option ( '--model.id [model]' , 'Model identifier' )
53+ . option ( '--model.displayName [displayName]' , 'Model display name' )
5354 . option ( '--model.apiKey [apiKey]' , 'Model API key' )
5455 . option ( '--apiKey [apiKey]' , 'Model API key (deprecated, replaced by `--model.apiKey`)' )
5556 . option ( '--model.baseURL [baseURL]' , 'Model base URL' )
Original file line number Diff line number Diff line change @@ -99,6 +99,24 @@ describe('buildAppConfig', () => {
9999 } ) ;
100100 } ) ;
101101
102+ it ( 'should handle model displayName configuration' , ( ) => {
103+ const cliArgs : AgentCLIArguments = {
104+ model : {
105+ provider : 'openai' ,
106+ id : 'gpt-4' ,
107+ displayName : 'GPT-4 Turbo' ,
108+ } ,
109+ } ;
110+
111+ const result = buildAppConfig ( cliArgs , { } ) ;
112+
113+ expect ( result . model ) . toEqual ( {
114+ provider : 'openai' ,
115+ id : 'gpt-4' ,
116+ displayName : 'GPT-4 Turbo' ,
117+ } ) ;
118+ } ) ;
119+
102120 it ( 'should handle thinking configuration' , ( ) => {
103121 const cliArgs : AgentCLIArguments = {
104122 thinking : {
You can’t perform that action at this time.
0 commit comments