@@ -81,37 +81,37 @@ func TestConfig_Parse(t *testing.T) {
8181 },
8282 {
8383 name : "Set UI prompt value" ,
84- args : []string {"--ui. prompt.value=test" },
84+ args : []string {"--llm.call. prompt.init- value=test" },
8585 expected : modifiedConfig (func (c * model.Config ) {
86- c .MainProfile .UI .Prompt .InitValue = "test"
86+ c .MainProfile .LLM . CallOptions .Prompt .InitValue = "test"
8787 }),
8888 },
8989 {
9090 name : "Set UI prompt value - shorthand" ,
9191 args : []string {"-p=test" },
9292 expected : modifiedConfig (func (c * model.Config ) {
93- c .MainProfile .UI .Prompt .InitValue = "test"
93+ c .MainProfile .LLM . CallOptions .Prompt .InitValue = "test"
9494 }),
9595 },
9696 {
9797 name : "Set system prompt value" ,
98- args : []string {"--llm.call.system- prompt=test" },
98+ args : []string {"--llm.call.prompt.system =test" },
9999 expected : modifiedConfig (func (c * model.Config ) {
100- c .MainProfile .LLM .CallOptions .SystemPrompt = "test"
100+ c .MainProfile .LLM .CallOptions .Prompt . System = "test"
101101 }),
102102 },
103103 {
104104 name : "Set UI prompt initial attachments" ,
105- args : []string {"--ui. prompt.attachments .[0]=file1.txt" , "--ui. prompt.attachments .[1]=file2.txt" },
105+ args : []string {"--llm.call. prompt.init-attachment .[0]=file1.txt" , "--llm.call. prompt.init-attachment .[1]=file2.txt" },
106106 expected : modifiedConfig (func (c * model.Config ) {
107- c .MainProfile .UI .Prompt .InitAttachments = []string {"file1.txt" , "file2.txt" }
107+ c .MainProfile .LLM . CallOptions .Prompt .InitAttachments = []string {"file1.txt" , "file2.txt" }
108108 }),
109109 },
110110 {
111111 name : "Set UI prompt initial attachments - shorthand" ,
112112 args : []string {"-a=file1.txt" , "-a=file2.txt" },
113113 expected : modifiedConfig (func (c * model.Config ) {
114- c .MainProfile .UI .Prompt .InitAttachments = []string {"file1.txt" , "file2.txt" }
114+ c .MainProfile .LLM . CallOptions .Prompt .InitAttachments = []string {"file1.txt" , "file2.txt" }
115115 }),
116116 },
117117 {
@@ -385,9 +385,9 @@ func TestConfig_Parse(t *testing.T) {
385385 },
386386 {
387387 name : "Set environment variable for init prompt" ,
388- env : []string {EnvironmentPrefix + "=--ui. prompt.value=test" },
388+ env : []string {EnvironmentPrefix + "=--llm.call. prompt.init- value=test" },
389389 expected : modifiedConfig (func (c * model.Config ) {
390- c .MainProfile .UI .Prompt .InitValue = "test"
390+ c .MainProfile .LLM . CallOptions .Prompt .InitValue = "test"
391391 }),
392392 },
393393 {
@@ -470,11 +470,11 @@ func TestConfig_Parse(t *testing.T) {
470470 {
471471 name : "Set environment variable for UI prompt initial attachments" ,
472472 env : []string {
473- EnvironmentPrefix + "=--ui. prompt.attachments .[1]=file2.txt" ,
474- EnvironmentPrefix + "=--ui. prompt.attachments .[0]=file1.txt" ,
473+ EnvironmentPrefix + "=--llm.call. prompt.init-attachment .[1]=file2.txt" ,
474+ EnvironmentPrefix + "=--llm.call. prompt.init-attachment .[0]=file1.txt" ,
475475 },
476476 expected : modifiedConfig (func (c * model.Config ) {
477- c .MainProfile .UI .Prompt .InitAttachments = []string {"file1.txt" , "file2.txt" }
477+ c .MainProfile .LLM . CallOptions .Prompt .InitAttachments = []string {"file1.txt" , "file2.txt" }
478478 }),
479479 },
480480 {
@@ -672,10 +672,10 @@ func TestConfig_Parse(t *testing.T) {
672672 },
673673 {
674674 name : "Argument will override environment" ,
675- args : []string {"--ui. prompt.value=arg-prompt" },
676- env : []string {EnvironmentPrefix + "=--ui. prompt.value=env-prompt" },
675+ args : []string {"--llm.call. prompt.init- value=arg-prompt" },
676+ env : []string {EnvironmentPrefix + "=--llm.call. prompt.init- value=env-prompt" },
677677 expected : modifiedConfig (func (c * model.Config ) {
678- c .MainProfile .UI .Prompt .InitValue = "arg-prompt"
678+ c .MainProfile .LLM . CallOptions .Prompt .InitValue = "arg-prompt"
679679 }),
680680 },
681681 {
@@ -714,12 +714,12 @@ func TestConfig_Parse(t *testing.T) {
714714 args : []string {"--profiles.test.description=test" , "-P" , "test" , "-p" , "What is the answer?" },
715715 expected : modifiedConfig (func (c * model.Config ) {
716716 c .ActiveProfile = "test"
717- c .MainProfile .UI .Prompt .InitValue = "What is the answer?"
717+ c .MainProfile .LLM . CallOptions .Prompt .InitValue = "What is the answer?"
718718
719719 testProfile := & model.Profile {}
720720 yacl .NewConfig (testProfile ).ApplyDefaults ()
721721 testProfile .Meta .Description = "test"
722- testProfile .UI .Prompt .InitValue = "What is the answer?"
722+ testProfile .LLM . CallOptions .Prompt .InitValue = "What is the answer?"
723723
724724 c .Profiles = map [string ]* model.Profile {
725725 "test" : testProfile ,
0 commit comments