Sol·luciona l'incidència #1
This commit is contained in:
pare
e65290a78d
commit
0b56f14aab
S'han modificat 2 arxius amb 4 adicions i 2 eliminacions
|
@ -16,6 +16,7 @@ def cleanhtml(raw_html):
|
|||
|
||||
def unescape(s):
|
||||
s = s.replace("'", "'")
|
||||
s = s.replace("'", "'")
|
||||
return s
|
||||
|
||||
def replying():
|
||||
|
@ -105,7 +106,7 @@ if __name__ == '__main__':
|
|||
|
||||
if reply == True:
|
||||
|
||||
prompt = query_word
|
||||
prompt = unescape(query_word)
|
||||
|
||||
if prompt[:7] == 'imatge:':
|
||||
|
||||
|
|
|
@ -193,7 +193,8 @@ class Xat:
|
|||
elif response.status_code == 502:
|
||||
ex_type = OpenaiBadGatewayError
|
||||
elif response.status_code == 503:
|
||||
ex_type = OpenaiServiceUnavailableError
|
||||
#ex_type = OpenaiServiceUnavailableError
|
||||
return response
|
||||
elif response.status_code == 504:
|
||||
ex_type = OpenaiGatewayTimeoutError
|
||||
elif response.status_code >= 500 and \
|
||||
|
|
Loading…
Referencia en una nova incidència