From 89173f5e750182de5a244e0abd2293ea9191355d Mon Sep 17 00:00:00 2001 From: popcion Date: Sun, 15 Dec 2024 08:25:29 +0800 Subject: [PATCH] Update keys.py --- manga_translator/translators/keys.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manga_translator/translators/keys.py b/manga_translator/translators/keys.py index d520c380..0b97a7a7 100644 --- a/manga_translator/translators/keys.py +++ b/manga_translator/translators/keys.py @@ -31,5 +31,5 @@ # ollama, with OpenAI API compatibility OLLAMA_API_KEY = os.getenv('OLLAMA_API_KEY', 'ollama') # Unsed for ollama, but maybe useful for other LLM tools. -OLLAMA_API_BASE = os.getenv('OLLAMA_API_BASE', '') # Use OLLAMA_HOST env to change binding IP and Port. +OLLAMA_API_BASE = os.getenv('OLLAMA_API_BASE', 'http://localhost:11434/v1') # Use OLLAMA_HOST env to change binding IP and Port. OLLAMA_MODEL = os.getenv('OLLAMA_MODEL', '') # e.g "qwen2.5:7b". Make sure to pull and run it before use.