2 Commits

Author SHA1 Message Date
Ilya Sharov
8609e6854e Fix streaming response issues in Ollama-OpenRouter proxy
This commit addresses two issues in the Ollama-OpenRouter proxy:

Fixed "Cannot read properties of undefined (reading 'content')" error:

Added missing "message" field with empty content to the final streaming response
This ensures the frontend can always access message.content without errors
Improved model name handling in GetFullModelName:

Added check to populate model list if empty
Implemented multi-stage matching (exact match, then suffix match)
Fallback to using the provided model name directly if no match found
This allows direct use of model names like 'deepseek-chat-v3-0324:free'
Added logging for model name resolution to help with debugging
2025-04-11 14:31:30 +03:00
Mark Nefedov
fe692b39cd Initial commit 2024-12-25 00:48:58 +03:00