Fix Ollama model name to use llama3:latest instead of llama3:8b

- Changed model from 'llama3:8b' to 'llama3:latest' to match available models
- Verified Ollama integration is working correctly
- AI detection now successfully identifies speakers in unmarked text
This commit is contained in:
2025-12-09 10:54:05 +00:00
parent f56f8086e5
commit b48e53ce63

View File

@@ -28,7 +28,7 @@ class OllamaService:
or http://localhost:11434 if not set. or http://localhost:11434 if not set.
""" """
self.base_url = base_url or os.getenv("OLLAMA_BASE_URL", "http://localhost:11434") self.base_url = base_url or os.getenv("OLLAMA_BASE_URL", "http://localhost:11434")
self.model = "llama3:8b" self.model = "llama3:latest" # Using llama3:latest (8B model)
self.timeout = 30.0 # 30 seconds timeout self.timeout = 30.0 # 30 seconds timeout
async def detect_speakers(self, text: str) -> List[str]: async def detect_speakers(self, text: str) -> List[str]: