Skip to content

Commit f27a0bb

Browse files
chore: remove gpt-oss model (#2524)
1 parent b8cb3a8 commit f27a0bb

File tree

1 file changed

+13
-11
lines changed
  • crates/chat-cli/src/cli/chat/cli

1 file changed

+13
-11
lines changed

crates/chat-cli/src/cli/chat/cli/model.rs

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ use crossterm::{
99
};
1010
use dialoguer::Select;
1111

12-
use crate::api_client::Endpoint;
1312
use 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)]
146146
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)
157159
}
158160

159161
/// Returns the context window length in tokens for the given model_id.

0 commit comments

Comments
 (0)