Skip to content

Commit

Permalink
don't proxy if not completions
Browse files Browse the repository at this point in the history
  • Loading branch information
jackalcooper committed Feb 19, 2025
1 parent 80389b4 commit a4b681f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/client/platforms/siliconflow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export class SiliconflowApi implements LLMApi {

const isVercelBuild = !!getClientConfig()?.isVercelBuild;
// If we are building on Vercel, directly access to SiliconFlow API for better performance
if (isVercelBuild) {
if (isVercelBuild || !path.includes(SiliconFlow.ChatPath)) {
baseUrl = SILICONFLOW_BASE_URL;
}

Expand Down

0 comments on commit a4b681f

Please sign in to comment.