christophezhao / chagpt-api-call Goto Github PK
View Code? Open in Web Editor NEWPython calls ChatGPT API, multi-turn dialogue support
Python calls ChatGPT API, multi-turn dialogue support
您好,请问how to run里的requirements.txt在哪里找到,谢谢您的回复!
你好,我想请问一下,这个有没有办法提速?我感觉他的回答好慢。我是在国外的用户。
Hi, there appears to be a connection error when it tries to fetch the openai api, how and where can i add a proxy setting to overcome this issue? could you please provide a minimal script? Thanks in advance!
An API error occurred: System: !!! The api call is abnormal, please check the backend log.
Do you know why this is? I regenerated the new API, and the problem still occurs.
Thanks for your great work!
I am wondering if there is any parameter to modify the temperature parameter, which controls the diversity of the generated context.
By the way, do you know how to adapt GPT-4's API in your code?
大佬们这是什么情况啊?。。。
FLASK_APP = ChaGPT-API-Call-main/manager.py
FLASK_ENV = development
FLASK_DEBUG = 0
In folder C:/Users/80909/OneDrive - UTS/Desktop/hf/GPT4
C:\Python312\python.exe -m flask run
Traceback (most recent call last):
File "", line 189, in _run_module_as_main
File "", line 148, in _get_module_details
File "", line 112, in get_module_details
File "C:\Python312\Lib\site-packages\flask_init.py", line 5, in
from .app import Flask as Flask
File "C:\Python312\Lib\site-packages\flask\app.py", line 30, in
from werkzeug.urls import url_quote
ImportError: cannot import name 'url_quote' from 'werkzeug.urls' (C:\Python312\Lib\site-packages\werkzeug\urls.py). Did you mean: 'unquote'?
Process finished with exit code 1
Hello blogger, I have obtained the API-key of Open AI and deployed and run it according to the steps you provided, but the running results show:‘Traceback (most recent call last):
File "F:\python\files\ChaGPT-API-Call\test.py", line 51, in
chat_test(keys,model_name,request_address,context)
File "F:\python\files\ChaGPT-API-Call\test.py", line 27, in chat_test
response = res.json()['choices'][0]['message']['content']
KeyError: 'choices'’
How can I fix this?
Hello,ChatGPT on the web page can use the conversation normally, but the error "You exceeded your current quota, please check your plan and billing details." is displayed through the API interface.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.