FastChat
FastChat copied to clipboard
TypeError: string indices must be integers
Use the Python openai to call the FastChat API + baichuan2-13B, then I received the "TypeError: string indices must be integers" error
The full error message: """ Traceback (most recent call last): File "C:\Users\Adams\anaconda3\lib\site-packages\openai\api_requestor.py", line 413, in handle_error_response error_data = resp["error"] TypeError: string indices must be integers
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:/Programs/20230927/LLM/api_sample_test.py", line 13, in
Process finished with exit code 1 """