Skip to content
New issue

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

不知道怎么用?看看博主的分享 #9

Closed
Vinlic opened this issue Apr 10, 2024 · 1 comment
Closed

不知道怎么用?看看博主的分享 #9

Vinlic opened this issue Apr 10, 2024 · 1 comment

Comments

@Vinlic
Copy link
Member

Vinlic commented Apr 10, 2024

https://www.bilibili.com/video/BV12m421n7w4
https://www.bilibili.com/video/BV1Rm421J7jf
https://www.bilibili.com/video/BV1dr42187VJ
https://www.bilibili.com/video/BV1XC411V7uh

qwen-free-api使用方法除了取login_ticket值之外和kimi-free-api基本一致

@Vinlic Vinlic pinned this issue Apr 10, 2024
@Vinlic Vinlic closed this as completed Apr 10, 2024
@332123342
Copy link

贴一个api调用的代码

from openai import OpenAI

token='xxx'

client = OpenAI(base_url='http://127.0.0.1:8000/v1', api_key=token)
response = client.chat.completions.create(
    model="qwen",
    messages = [
        {
            "role": "user",
            "content": "你是谁?"
        }
    ],
)
print(response)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants