refactor: global codebase refactoring
This commit is contained in:
1 parent
a799c8ee51
commit
f56687fbad
17 files changed
+89
-240
No files matched your search
@@ -16,8 +16,10 @@ class YandexAIHealthCheck(BaseHealthCheckBackend):
|
||||
result = sdk.models.completions(
|
||||
"yandexgpt-lite", model_version="latest"
|
||||
).tokenize("ping")
|
||||
|
||||
if not result:
|
||||
self.add_error("YandexAI API is unaccessible")
|
||||
|
||||
except YCloudMLError:
|
||||
self.add_error("YandexAI API is unaccessible")
|
||||
|
||||
|
||||
Reference in new issue
Block a user