Skip to content

Commit

Permalink
Merge pull request #68 from Supahands/feat/advanced-options
Browse files Browse the repository at this point in the history
wrong api
  • Loading branch information
EvanZJ authored Dec 24, 2024
2 parents f73a762 + f338d2d commit 238858a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ai_router.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ async def messaging(request: MessageRequest):
if ollama_model:
logging.info(f"Using Ollama provider with model_id: {ollama_model['model_id']}")
model_id = f"openai/{ollama_model['model_id']}"
api_url = os.environ['OLLAMA_API']
api_url = os.environ['OLLAMA_API_URL']
return await handle_completion(model_id, message, config=config, api_base=api_url)

# Error handling
Expand Down

0 comments on commit 238858a

Please sign in to comment.