-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
无法调用问答api #81
Comments
Please paste the content of api.log here, I will help you debug. |
INFO:debug_logger:local_doc_chat zzp |
|
def chat(prompt):
"""
问答(POST)
"""
url = 'http://192.168.18.165:8777/api/local_doc_qa/local_doc_chat'
data = {
'user_id': 'zzp',
'kb_ids': ["KB87a14388cc37435694376d038820b1b7"],
'question': f'{prompt}',
'history': []
}
response = requests.post(url, data=data)
print(response.text)
==============================
The application encountered an unexpected error and could not continue.
The text was updated successfully, but these errors were encountered: