hotfix/server: add follow_redirect on modal

This commit is contained in:
2023-11-02 19:09:13 +01:00
parent 3424550ea9
commit c87c30d339
4 changed files with 4 additions and 0 deletions

View File

@@ -47,6 +47,7 @@ class ModalLLM(LLM):
json=json_payload,
timeout=self.timeout,
retry_timeout=60 * 5,
follow_redirects=True,
)
response.raise_for_status()
text = response.json()["text"]