fix exception where openrouter doesn't populate - no longer index without fallback

This commit is contained in:
i-infra
2025-02-15 19:41:41 -05:00
parent 2017856791
commit fb12ee3f52
4 changed files with 6 additions and 6 deletions

View File

@@ -795,7 +795,7 @@ async def process_chat_payload(request, form_data, metadata, user, model):
# Workaround for Ollama 2.0+ system prompt issue
# TODO: replace with add_or_update_system_message
if model["owned_by"] == "ollama":
if model.get("owned_by") == "ollama":
form_data["messages"] = prepend_to_first_user_message_content(
rag_template(
request.app.state.config.RAG_TEMPLATE, context_string, prompt