请求的data
{‘messages’: [{‘role’: ‘user’, ‘content’: ‘你好’}], ‘stream’: True, ‘model’: ‘gpt-4’, ‘temperature’: 0.5, ‘presence_penalty’: 0, ‘frequency_penalty’: 0, ‘top_p’: 1}
返回的response
{
"id": "chatcmpl-9ZLBiwZERiB0uO7jhvKESsA0BGnWo",
"object": "chat.completion",
"created": 1718209954,
"model": "gpt-4-0613",
"choices": [
{
"message": {
"role": "assistant",
"content": "你好!有什么我可以帮助你的吗?"
},
"index": 0,
"finish_reason": "stop",
"logprobs": null
}
],
"usage": {
"prompt_tokens": 720,
"completion_tokens": 2760,
"total_tokens": 3480
}
}
nextweb报错:
{
"error": {
"message": "bad response status code 200 (request id: 2024061300323378410290072987088) (request id: 2024061216323376999450991816516)",
"type": "upstream_error",
"param": "200",
"code": "bad_response_status_code"
}
}
感觉不应该啊