fix: ollama version request when ollama api is disabled

This commit is contained in:
Timothy J. Baek
2024-06-05 09:08:52 -07:00
parent 1d6bbdf917
commit d077b3dcdb
2 changed files with 50 additions and 43 deletions

View File

@@ -84,3 +84,7 @@ class ERROR_MESSAGES(str, Enum):
WEB_SEARCH_ERROR = (
lambda err="": f"{err if err else 'Oops! Something went wrong while searching the web.'}"
)
OLLAMA_API_DISABLED = (
"The Ollama API is disabled. Please enable it to use this feature."
)