chore: more

This commit is contained in:
2026-10-08 01:48:13 -04:00
parent 5ce36e3b8c
commit 0521a264dc

View File

@@ -111,10 +111,12 @@ impl Shortcut {
match self { match self {
S::XS => vec![ S::XS => vec![
(P::GoogleAiStudio, "gemini-3.5-flash-lite".into()), (P::GoogleAiStudio, "gemini-3.5-flash-lite".into()),
(P::OpenRouter, "apodex/apodex-1.1-mini:free".into()),
(P::OpenRouter, "poolside/laguna-xs-2.1:free".into()), (P::OpenRouter, "poolside/laguna-xs-2.1:free".into()),
(P::OpenRouter, "cohere/north-mini-code:free".into()), (P::OpenRouter, "cohere/north-mini-code:free".into()),
(P::OpenRouter, "nvidia/nemotron-3.5-lightning:free".into()), (P::OpenRouter, "nvidia/nemotron-3.5-lightning:free".into()),
(P::OpenRouter, "google/gemma-4-26b-a4b-it:free".into()), (P::OpenRouter, "google/gemma-4-26b-a4b-it:free".into()),
(P::HuggingFace, "google/gemma-4-26B-A4B-it".into()),
(P::OpenRouter, "poolside/laguna-xs.2:free".into()), (P::OpenRouter, "poolside/laguna-xs.2:free".into()),
( (
P::OpenRouter, P::OpenRouter,
@@ -123,6 +125,7 @@ impl Shortcut {
(P::CloudflareWorkersAi, "@cf/openai/gpt-oss-20b".into()), (P::CloudflareWorkersAi, "@cf/openai/gpt-oss-20b".into()),
(P::OpenRouter, "openai/gpt-oss-20b:free".into()), (P::OpenRouter, "openai/gpt-oss-20b:free".into()),
(P::Groq, "openai/gpt-oss-20b".into()), (P::Groq, "openai/gpt-oss-20b".into()),
(P::HuggingFace, "openai/gpt-oss-20b".into()),
(P::OpenRouter, "liquid/lfm-2.5-2.6b:free".into()), (P::OpenRouter, "liquid/lfm-2.5-2.6b:free".into()),
(P::Groq, "groq/compound-mini".into()), (P::Groq, "groq/compound-mini".into()),
(P::OpenRouter, "openrouter/free".into()), (P::OpenRouter, "openrouter/free".into()),
@@ -158,6 +161,7 @@ impl Shortcut {
(P::CloudflareWorkersAi, "@cf/openai/gpt-oss-120b".into()), (P::CloudflareWorkersAi, "@cf/openai/gpt-oss-120b".into()),
(P::OpenRouter, "openai/gpt-oss-120b:free".into()), (P::OpenRouter, "openai/gpt-oss-120b:free".into()),
(P::Groq, "openai/gpt-oss-120b".into()), (P::Groq, "openai/gpt-oss-120b".into()),
(P::HuggingFace, "openai/gpt-oss-120b".into()),
], ],
S::L => vec![ S::L => vec![
@@ -179,6 +183,7 @@ impl Shortcut {
(P::Mistral, "zai-glm-5-3".into()), (P::Mistral, "zai-glm-5-3".into()),
(P::HuggingFace, "tencent/Hy4-preview".into()), (P::HuggingFace, "tencent/Hy4-preview".into()),
(P::HuggingFace, "XiaomiMiMo/MiMo-V2.6-Pro-RL".into()), (P::HuggingFace, "XiaomiMiMo/MiMo-V2.6-Pro-RL".into()),
(P::Mistral, "mistral-large-4".into()),
(P::HuggingFace, "moonshotai/Kimi-K3".into()), (P::HuggingFace, "moonshotai/Kimi-K3".into()),
(P::HuggingFace, "Qwen/Qwen3.8-2.4T-A95B".into()), (P::HuggingFace, "Qwen/Qwen3.8-2.4T-A95B".into()),
(P::OpenRouter, "thinkingmachines/inkling:free".into()), (P::OpenRouter, "thinkingmachines/inkling:free".into()),
@@ -188,21 +193,6 @@ impl Shortcut {
S::Experimental => vec![(P::OpenRouter, "space-bunny-alpha".into())], S::Experimental => vec![(P::OpenRouter, "space-bunny-alpha".into())],
} }
} }
fn default_reasoning(&self) -> openai::chat::completion::ReasoningEffort {
use Shortcut as S;
use openai::chat::completion::ReasoningEffort as R;
match self {
S::XS => R::None,
S::S => R::Low,
S::M => R::Medium,
S::L => R::High,
S::XL => R::ExtraHigh,
S::Experimental => R::Medium,
}
}
} }
fn take_random_by_swapping<T>(mut vec1: Vec1<T>, mut rng: impl Rng) -> (T, Option<Vec1<T>>) { fn take_random_by_swapping<T>(mut vec1: Vec1<T>, mut rng: impl Rng) -> (T, Option<Vec1<T>>) {
@@ -435,11 +425,7 @@ async fn create_chat_completion(
web_search_options, web_search_options,
} = request.clone(); } = request.clone();
let reasoning_effort = Some( let reasoning_effort = reasoning_effort.or(reasoning_in_id.clone());
reasoning_effort
.or(reasoning_in_id.clone())
.unwrap_or(shortcut.default_reasoning()),
);
let request = openai::chat::completion::CreateChatCompletionRequest { let request = openai::chat::completion::CreateChatCompletionRequest {
model, model,