mirror of
https://github.com/searxng/searxng.git
synced 2024-11-14 16:50:11 +01:00
set utf8 encode for data, fix non english char cause 500 error
This commit is contained in:
parent
a04653aba1
commit
de887340ed
@ -39,7 +39,7 @@ def request(query, params):
|
|||||||
{ 'role': 'system', 'content': cf_ai_model_system },
|
{ 'role': 'system', 'content': cf_ai_model_system },
|
||||||
{ 'role': 'user', 'content': params['query'] }
|
{ 'role': 'user', 'content': params['query'] }
|
||||||
]
|
]
|
||||||
})
|
}).encode('utf-8')
|
||||||
|
|
||||||
return params
|
return params
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user