feat(acp): add model selection support for session/new and session/set_model (#7112)

Signed-off-by: Adrian Cole <adrian@tetrate.io>
This commit is contained in:
Adrian Cole
2026-02-10 13:23:36 +08:00
committed by GitHub
parent 4abf91e72b
commit 49ad115fb1
12 changed files with 332 additions and 36 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ use reqwest::StatusCode;
use std::time::Duration;
use thiserror::Error;
#[derive(Error, Debug, PartialEq)]
#[derive(Error, Debug, Clone, PartialEq)]
pub enum ProviderError {
#[error("Authentication error: {0}")]
Authentication(String),
+1
View File
@@ -47,6 +47,7 @@ pub const OPEN_AI_KNOWN_MODELS: &[(&str, usize)] = &[
("gpt-3.5-turbo", 16_385),
("gpt-4-turbo", 128_000),
("o4-mini", 128_000),
("gpt-5-nano", 400_000),
("gpt-5.1-codex", 400_000),
("gpt-5-codex", 400_000),
];