generated from songquanpeng/gin-template
-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
请求支持openai新模型gpt-4-turbo #1304
Labels
bug
Something isn't working
Comments
渠道模型那里,手动加上 另外,”填入渠道支持模型“ 会填入默认写好的模型;能否增加一个选项,获取渠道 curl $OPENAI_API_BASE/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $OPENAI_API_KEY" \
-d '{
"model": "gpt-4-turbo",
"messages": [
{
"role": "user",
"content": [
{
"type": "text",
"text": "What'\''s in this image?"
},
{
"type": "image_url",
"image_url": {
"url": "https://upload.wikimedia.org/wikipedia/commons/thumb/d/dd/Gfp-wisconsin-madison-the-nature-boardwalk.jpg/2560px-Gfp-wisconsin-madison-the-nature-boardwalk.jpg"
}
}
]
}
],
"max_tokens": 300
}'
{
"id": "chatcmpl-9DAlsV4hpKvEkdpfxaWLppuhOUa45",
"object": "chat.completion",
"created": 1712926696,
"model": "gpt-4-turbo-2024-04-09",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "This image features a beautiful natural landscape with a wooden boardwalk extending through a lush green meadow. The meadow is flanked by tall grasses and some scattered bushes, possibly hinting at a wetland or marshland environment. The sky above is clear with a few clouds, suggesting a sunny day. This scene is serene, and the boardwalk invites one to walk through and enjoy the tranquil surroundings. The overall picture is vibrant with rich green tones and a sense of peacefulness in a natural setting."
},
"logprobs": null,
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 1118,
"completion_tokens": 102,
"total_tokens": 1220
},
"system_fingerprint": "fp_d1bac968b4"
} |
@RexWzh 这个是有什么用途吗?目前 /v1/models 返回的是令牌所支持的渠道 |
v1/models 的处理非常好了~ |
Open
SheldonLiu0412
pushed a commit
to SheldonLiu0412/one-api
that referenced
this issue
Jan 23, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
例行检查
问题描述
支持Openai GPT-4 Turbo
复现步骤
预期结果
相关截图

The text was updated successfully, but these errors were encountered: