Sol·luciona l'incidència #1

This commit is contained in:
spla 2023-01-26 13:11:36 +01:00
pare e65290a78d
commit 0b56f14aab
S'han modificat 2 arxius amb 4 adicions i 2 eliminacions

Veure arxiu

@ -16,6 +16,7 @@ def cleanhtml(raw_html):
def unescape(s): def unescape(s):
s = s.replace("'", "'") s = s.replace("'", "'")
s = s.replace("'", "'")
return s return s
def replying(): def replying():
@ -105,7 +106,7 @@ if __name__ == '__main__':
if reply == True: if reply == True:
prompt = query_word prompt = unescape(query_word)
if prompt[:7] == 'imatge:': if prompt[:7] == 'imatge:':

Veure arxiu

@ -193,7 +193,8 @@ class Xat:
elif response.status_code == 502: elif response.status_code == 502:
ex_type = OpenaiBadGatewayError ex_type = OpenaiBadGatewayError
elif response.status_code == 503: elif response.status_code == 503:
ex_type = OpenaiServiceUnavailableError #ex_type = OpenaiServiceUnavailableError
return response
elif response.status_code == 504: elif response.status_code == 504:
ex_type = OpenaiGatewayTimeoutError ex_type = OpenaiGatewayTimeoutError
elif response.status_code >= 500 and \ elif response.status_code >= 500 and \