File tree Expand file tree Collapse file tree 1 file changed +13
-11
lines changed
crates/chat-cli/src/cli/chat/cli Expand file tree Collapse file tree 1 file changed +13
-11
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,6 @@ use crossterm::{
9
9
} ;
10
10
use dialoguer:: Select ;
11
11
12
- use crate :: api_client:: Endpoint ;
13
12
use crate :: auth:: builder_id:: {
14
13
BuilderIdToken ,
15
14
TokenType ,
@@ -143,17 +142,20 @@ pub async fn default_model_id(os: &Os) -> &'static str {
143
142
}
144
143
145
144
/// Returns the available models for use.
145
+ #[ allow( unused_variables) ]
146
146
pub 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)
157
159
}
158
160
159
161
/// Returns the context window length in tokens for the given model_id.
You can’t perform that action at this time.
0 commit comments