Skip to content

Commit dadfe4e

Browse files
authored
feat(tarko-agent-cli): add --model.displayName option support (#1605)
1 parent df2ae59 commit dadfe4e

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

multimodal/tarko/agent-cli/src/core/options.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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')

multimodal/tarko/agent-cli/tests/config-builder.test.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff 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: {

0 commit comments

Comments
 (0)