1
0
mirror of https://github.com/searxng/searxng.git synced 2024-11-14 08:40:11 +01:00

set utf8 encode for data, fix non english char cause 500 error

This commit is contained in:
Zhijie He 2024-06-08 22:39:16 +08:00 committed by GitHub
parent a04653aba1
commit de887340ed
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -39,7 +39,7 @@ def request(query, params):
{ 'role': 'system', 'content': cf_ai_model_system },
{ 'role': 'user', 'content': params['query'] }
]
})
}).encode('utf-8')
return params