mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-04 14:22:09 +03:00
fix(misc): minor fixes across reasoning cache, account fallback, binary manager (#3177)
Misc: ProviderProfile export, DeepSeek reasoning regex, binary guard. Integrated into release/v3.8.10.
This commit is contained in:
@@ -29,7 +29,7 @@ import {
|
||||
} from "../../src/shared/utils/classify429";
|
||||
import { resolveUseUpstream429BreakerHints } from "../../src/shared/utils/providerHints";
|
||||
|
||||
type ProviderProfile = {
|
||||
export type ProviderProfile = {
|
||||
baseCooldownMs: number;
|
||||
useUpstreamRetryHints: boolean;
|
||||
/** Issue #2100 follow-up. Stored override; undefined → per-provider default. */
|
||||
|
||||
@@ -45,7 +45,8 @@ const REASONING_REPLAY_MODEL_PATTERNS = [
|
||||
/deepseek-r1/i,
|
||||
/deepseek-reasoner/i,
|
||||
/deepseek-chat/i,
|
||||
/deepseek[-/]v4[-.](flash|pro)/i,
|
||||
/deepseek[-/]v4[-.](flash|pro)(-free)?/i,
|
||||
/zen\/deepseek-v4/i,
|
||||
/kimi-k2/i,
|
||||
/qwq/i,
|
||||
/qwen.*think/i,
|
||||
|
||||
@@ -162,6 +162,7 @@ export async function getInstalledVersions(dataDir?: string): Promise<string[]>
|
||||
return entries
|
||||
.filter(
|
||||
(e) =>
|
||||
typeof e === "string" &&
|
||||
e.startsWith("cliproxyapi-") &&
|
||||
fsSync.statSync(path.join(/* turbopackIgnore: true */ binDir, e)).isDirectory()
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user