Closed cpken closed 4 months ago
Bot detected the issue body's language is not English, translate it automatically.
Title: [Bug] MobileAgent uses GPT-4o
Use MobileAgent to test some functions, -gpt-4o -python 3.10
https://api.nextapi.fun/v1/chat/completions
After running, it was found that the request result could not be obtained, only the request was successful.
res = requests.post(api_url, headers=headers, json=data)
print('================== res-start: =============')
print(res.status_code)
if res.status_code == 200:
print('Request successful:', res.text)
print('content:', res.content)
print('================== res-end: ==============')
res = res.json()['choices'][0]['message']['content']
================= res-start: =============
<Response [200]>
200
Request successful: json{}
content: b'json\n{}\n'
================= res-end: ==============
api_url = "https://api.nextapi.fun/v1/chat/completions"
in MobileAgent/api.py
run.py
The json content should be returned correctly, but empty json is returned.
No response
No response
No response
No response
No response
No response
No response
No response
Bug Description
使用 MobileAgent 测试一些功能,
https://api.nextapi.fun/v1/chat/completions
在运行后,发现返回结果为空,仅请求成功而已
Steps to Reproduce
MobileAgent/api.py
中api_url = "https://api.nextapi.fun/v1/chat/completions"
run.py
Expected Behavior
应该正确返回 json 内容,但却返回的是空 json。
Screenshots
Deployment Method
Desktop OS
No response
Desktop Browser
No response
Desktop Browser Version
No response
Smartphone Device
No response
Smartphone OS
No response
Smartphone Browser
No response
Smartphone Browser Version
No response
Additional Logs
No response