Commit 15f4153f authored by Timothy J. Baek's avatar Timothy J. Baek
Browse files

fix: openai isseu

parent 1371e66e
...@@ -588,7 +588,7 @@ ...@@ -588,7 +588,7 @@
max_tokens: $settings?.options?.num_predict ?? undefined, max_tokens: $settings?.options?.num_predict ?? undefined,
docs: docs.length > 0 ? docs : undefined docs: docs.length > 0 ? docs : undefined
}, },
model.source.toLowerCase() === 'litellm' model?.source?.toLowerCase() === 'litellm'
? `${LITELLM_API_BASE_URL}/v1` ? `${LITELLM_API_BASE_URL}/v1`
: `${OPENAI_API_BASE_URL}` : `${OPENAI_API_BASE_URL}`
); );
......
...@@ -602,7 +602,7 @@ ...@@ -602,7 +602,7 @@
max_tokens: $settings?.options?.num_predict ?? undefined, max_tokens: $settings?.options?.num_predict ?? undefined,
docs: docs.length > 0 ? docs : undefined docs: docs.length > 0 ? docs : undefined
}, },
model.source.toLowerCase() === 'litellm' model?.source?.toLowerCase() === 'litellm'
? `${LITELLM_API_BASE_URL}/v1` ? `${LITELLM_API_BASE_URL}/v1`
: `${OPENAI_API_BASE_URL}` : `${OPENAI_API_BASE_URL}`
); );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment