Spaces:
Sleeping
Sleeping
Boris
commited on
Commit
·
5c095fc
1
Parent(s):
b95ae72
PERS scope
Browse files
src/get_answer_gigachat.py
CHANGED
@@ -25,7 +25,7 @@ class AnswerGigaChat(GigaChat):
|
|
25 |
super().__init__(credentials=os.getenv("GIGACHAT_CREDENTIALS"),
|
26 |
verify_ssl_certs=False,
|
27 |
model="GigaChat-Max",
|
28 |
-
scope="
|
29 |
self.logger = self._setup_logger(self.LOG_FILE_PATH)
|
30 |
|
31 |
def _setup_logger(self, log_file: str) -> logging.Logger:
|
|
|
25 |
super().__init__(credentials=os.getenv("GIGACHAT_CREDENTIALS"),
|
26 |
verify_ssl_certs=False,
|
27 |
model="GigaChat-Max",
|
28 |
+
scope="GIGACHAT_API_PERS")
|
29 |
self.logger = self._setup_logger(self.LOG_FILE_PATH)
|
30 |
|
31 |
def _setup_logger(self, log_file: str) -> logging.Logger:
|