File tree Expand file tree Collapse file tree 4 files changed +11
-10
lines changed Expand file tree Collapse file tree 4 files changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,8 @@ module github.com/gptscript-ai/gptscript
33//  This can't be upgraded until the issue with sys.daemon on Windows is resolved
44go  1.22.4 
55
6+ replace  github.com/gptscript-ai/tui  => ../tui 
7+ 
68require  (
79	github.com/AlecAivazis/survey/v2  v2.3.7 
810	github.com/BurntSushi/locker  v0.0.0-20171006230638-a6e239ea1c69 
@@ -17,8 +19,8 @@ require (
1719	github.com/gptscript-ai/broadcaster  v0.0.0-20240625175512-c43682019b86 
1820	github.com/gptscript-ai/chat-completion-client  v0.0.0-20240531200700-af8e7ecf0379 
1921	github.com/gptscript-ai/cmd  v0.0.0-20240625175447-4250b42feb7d 
20- 	github.com/gptscript-ai/go-gptscript  v0.9.3-0.20240728044543-20d868b5baa6  
21- 	github.com/gptscript-ai/tui  v0.0.0-20240728045051-19ba83cd96c1  
22+ 	github.com/gptscript-ai/go-gptscript  v0.9.3-0.20240731222146-b67275f3fa69  
23+ 	github.com/gptscript-ai/tui  v0.0.0-20240731002102-544a80108f89  
2224	github.com/hexops/autogold/v2  v2.2.1 
2325	github.com/hexops/valast  v1.4.4 
2426	github.com/jaytaylor/html2text  v0.0.0-20230321000545-74c2419ad056 
Original file line number Diff line number Diff line change @@ -171,10 +171,8 @@ github.com/gptscript-ai/chat-completion-client v0.0.0-20240531200700-af8e7ecf037
171171github.com/gptscript-ai/chat-completion-client  v0.0.0-20240531200700-af8e7ecf0379 /go.mod  h1:7P/o6/IWa1KqsntVf68hSnLKuu3+xuqm6lYhch1w4jo =
172172github.com/gptscript-ai/cmd  v0.0.0-20240625175447-4250b42feb7d  h1:sKf7T7twhGXs6AVbvD9pKDVewykkwSAPwEpmIEQIR/4 =
173173github.com/gptscript-ai/cmd  v0.0.0-20240625175447-4250b42feb7d /go.mod  h1:DJAo1xTht1LDkNYFNydVjTHd576TC7MlpsVRl3oloVw =
174- github.com/gptscript-ai/go-gptscript  v0.9.3-0.20240728044543-20d868b5baa6  h1:hF9Q8KdQhuoXSGKVh4ywRvwn5RJt9rbPraigpXqbGYU =
175- github.com/gptscript-ai/go-gptscript  v0.9.3-0.20240728044543-20d868b5baa6 /go.mod  h1:Dh6vYRAiVcyC3ElZIGzTvNF1FxtYwA07BHfSiFKQY7s =
176- github.com/gptscript-ai/tui  v0.0.0-20240728045051-19ba83cd96c1  h1:gJXswjjwoiWdOS+s73mliWbN9dyJpiUkb3T+EiV7EFc =
177- github.com/gptscript-ai/tui  v0.0.0-20240728045051-19ba83cd96c1 /go.mod  h1:Llh3vi87gyry6j/sgJxhkHHvgv9uQRzEiMWuQtmpW1w =
174+ github.com/gptscript-ai/go-gptscript  v0.9.3-0.20240731222146-b67275f3fa69  h1:c+Tf6I8jUg8hDgfP8jKs93UcC9dDIGxClWGZUL36Hd0 =
175+ github.com/gptscript-ai/go-gptscript  v0.9.3-0.20240731222146-b67275f3fa69 /go.mod  h1:Dh6vYRAiVcyC3ElZIGzTvNF1FxtYwA07BHfSiFKQY7s =
178176github.com/hashicorp/errwrap  v1.0.0  h1:hLrqtEDnRye3+sgx6z4qVLNuviH3MR5aQ0ykNJa/UYA =
179177github.com/hashicorp/errwrap  v1.0.0 /go.mod  h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4 =
180178github.com/hashicorp/go-multierror  v1.1.1  h1:H5DkEtf6CXdFp0N0Em5UCwQpXMWke8IA0+lD48awMYo =
Original file line number Diff line number Diff line change @@ -468,9 +468,10 @@ func (r *GPTScript) Run(cmd *cobra.Command, args []string) (retErr error) {
468468			// Don't use cmd.Context() because then sigint will cancel everything 
469469			return  tui .Run (context .Background (), args [0 ], tui.RunOptions {
470470				ClientOpts : & gptscript2.GlobalOptions {
471- 					OpenAIAPIKey :  r .OpenAIOptions .APIKey ,
472- 					OpenAIBaseURL : r .OpenAIOptions .BaseURL ,
473- 					DefaultModel :  r .DefaultModel ,
471+ 					OpenAIAPIKey :         r .OpenAIOptions .APIKey ,
472+ 					OpenAIBaseURL :        r .OpenAIOptions .BaseURL ,
473+ 					DefaultModel :         r .DefaultModel ,
474+ 					DefaultModelProvider : r .DefaultModelProvider ,
474475				},
475476				TrustedRepoPrefixes : []string {"github.com/gptscript-ai" },
476477				DisableCache :        r .DisableCache ,
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ type toolOrFileRequest struct {
6363	Confirm               bool      `json:"confirm"` 
6464	Location              string    `json:"location,omitempty"` 
6565	ForceSequential       bool      `json:"forceSequential"` 
66- 	DefaultModelProvider  string    `json:"defaultModelProvider ,omitempty"` 
66+ 	DefaultModelProvider  string    `json:"DefaultModelProvider ,omitempty"` 
6767}
6868
6969type  content  struct  {
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments