mirror of
https://github.com/musistudio/claude-code-router.git
synced 2026-02-02 23:00:50 +08:00
9 lines
271 B
TypeScript
9 lines
271 B
TypeScript
import { ThinkLevel } from "@/types/llm";
|
|
|
|
export const getThinkLevel = (thinking_budget: number): ThinkLevel => {
|
|
if (thinking_budget <= 0) return "none";
|
|
if (thinking_budget <= 1024) return "low";
|
|
if (thinking_budget <= 8192) return "medium";
|
|
return "high";
|
|
};
|