Skip to content

Commit b4268ec

Browse files
committed
fix: remove azureEndpoint fallback from LiteLLM provider
Copy-paste artifact from vLLM provider. LiteLLM should only use LITELLM_BASE_URL, not fall back to azureEndpoint which could cause requests to be routed to the wrong server.
1 parent 475820a commit b4268ec

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/sim/providers/litellm/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ export const litellmProvider: ProviderConfig = {
9494
stream: !!request.stream,
9595
})
9696

97-
const baseUrl = (request.azureEndpoint || env.LITELLM_BASE_URL || '').replace(/\/$/, '')
97+
const baseUrl = (env.LITELLM_BASE_URL || '').replace(/\/$/, '')
9898
if (!baseUrl) {
9999
throw new Error('LITELLM_BASE_URL is required for LiteLLM provider')
100100
}

0 commit comments

Comments
 (0)