We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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不会报这个错,但是就是说没额度,但是申请了免费的api报错如下,请问大佬如何解决,如果能用,后续会考虑付费使用
The text was updated successfully, but these errors were encountered:
没改api地址 转发api要修改api地址的哦
from openai import OpenAI client = OpenAI( # 输入转发API Key api_key="sk-xxxxxxx", base_url="https://api.chatanywhere.tech/v1" ) completion = client.chat.completions.create( model="gpt-3.5-turbo-1106", messages=[ {"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "你是谁!"} ], logprobs=True, stream=True # 是否开启流式输出 ) # 非流式输出获取结果 # print(completion.choices[0].message) # 流式输出获取结果 for chunk in completion: print(chunk.choices[0].delta) ''''
Sorry, something went wrong.
No branches or pull requests
我自己去官网搞的api不会报这个错,但是就是说没额度,但是申请了免费的api报错如下,请问大佬如何解决,如果能用,后续会考虑付费使用
The text was updated successfully, but these errors were encountered: