File tree Expand file tree Collapse file tree 2 files changed +13
-13
lines changed
crates/chat-cli/src/cli/chat Expand file tree Collapse file tree 2 files changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,6 @@ use crossterm::{
99} ;
1010use dialoguer:: Select ;
1111
12- use crate :: api_client:: Endpoint ;
1312use crate :: auth:: builder_id:: {
1413 BuilderIdToken ,
1514 TokenType ,
@@ -143,17 +142,20 @@ pub async fn default_model_id(os: &Os) -> &'static str {
143142}
144143
145144/// Returns the available models for use.
145+ #[ allow( unused_variables) ]
146146pub async fn get_model_options ( os : & Os ) -> Result < Vec < ModelOption > , ChatError > {
147- let mut model_options = MODEL_OPTIONS . into_iter ( ) . collect :: < Vec < _ > > ( ) ;
148-
149- // GPT OSS is only accessible in IAD.
150- let endpoint = Endpoint :: configured_value ( & os. database ) ;
151- if endpoint. region ( ) . as_ref ( ) != "us-east-1" {
152- return Ok ( model_options) ;
153- }
154-
155- model_options. push ( GPT_OSS_120B ) ;
156- Ok ( model_options)
147+ Ok ( MODEL_OPTIONS . into_iter ( ) . collect :: < Vec < _ > > ( ) )
148+ // TODO: Once we have access to gpt-oss, add back.
149+ // let mut model_options = MODEL_OPTIONS.into_iter().collect::<Vec<_>>();
150+ //
151+ // // GPT OSS is only accessible in IAD.
152+ // let endpoint = Endpoint::configured_value(&os.database);
153+ // if endpoint.region().as_ref() != "us-east-1" {
154+ // return Ok(model_options);
155+ // }
156+ //
157+ // model_options.push(GPT_OSS_120B);
158+ // Ok(model_options)
157159}
158160
159161/// Returns the context window length in tokens for the given model_id.
Original file line number Diff line number Diff line change @@ -13,8 +13,6 @@ use super::{
1313 InvokeOutput ,
1414 OutputKind ,
1515} ;
16-
17-
1816use crate :: cli:: agent:: {
1917 Agent ,
2018 PermissionEvalResult ,
You can’t perform that action at this time.
0 commit comments