Skip to content

Commit 58c3659

Browse files
authored
fix litellm api key (#1921)
1 parent bc4456d commit 58c3659

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/core/src/env.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -776,11 +776,12 @@ export async function parseTokenFromEnv(
776776
if (!URL.canParse(base)) {
777777
throw new Error(`${base} must be a valid URL`)
778778
}
779+
const token = env.LITELLM_API_KEY;
779780
return {
780781
provider,
781782
model,
782783
base,
783-
token: MODEL_PROVIDER_LITELLM,
784+
token,
784785
type: "openai",
785786
source: "default",
786787
}

0 commit comments

Comments
 (0)