This commit is contained in:
Timothy Jaeryang Baek committed 2025-06-10 16:52:37 +04:00
1 parent d2e7feea86
commit b39d33cefb
2 files changed
+6 -6

No files matched your search

+1 -5
View File
@@ -1290,11 +1290,7 @@ async def generate_chat_completion(
if params:
system = params.pop("system", None)
# Unlike OpenAI, Ollama does not support params directly in the body
payload["options"] = apply_model_params_to_body_ollama(
params, (payload.get("options", {}) or {})
)
payload = apply_model_params_to_body_ollama(params, payload)
payload = apply_model_system_prompt_to_body(system, payload, metadata, user)
# Check if user has access to the model