Repository navigation
fix(misc): DeepSeek regex, ProviderProfile export, binary guard #3177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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() | ||
| ) | ||
|
Comment on lines
163
to
168
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If .filter((e) => {
if (typeof e !== "string" || !e.startsWith("cliproxyapi-")) {
return false;
}
try {
return fsSync.statSync(path.join(/* turbopackIgnore: true */ binDir, e)).isDirectory();
} catch {
return false;
}
}) |
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The regex
DEEPSEEK_V4_MODEL_PATTERNon line 59 also needs to be updated to match these new-freeandzen/variants. Currently, it is defined as/deepseek[-/]v4[-.](flash|pro)/i, which meansisDeepSeekReasoningModelwill returnfalsefor these new variants.