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

[Request] gpt4o是否能通过url上传图片?我看api文档是支持的 #2696

Closed
xingpingcn opened this issue May 28, 2024 · 4 comments
Closed
Labels
🌠 Feature Request New feature or request | 特性与建议

Comments

@xingpingcn
Copy link

🥰 Feature Description

  • gpt4o通过url上传图片,而不是只能通过本地上传

🧐 Proposed Solution

  • 通过一个可选项给用户选择

📝 Additional Information

response = client.chat.completions.create(
    model=MODEL,
    messages=[
        {"role": "system", "content": "You are a helpful assistant that responds in Markdown. Help me with my math homework!"},
        {"role": "user", "content": [
            {"type": "text", "text": "What's the area of the triangle?"},
            {"type": "image_url", "image_url": {
                "url": "https://upload.wikimedia.org/wikipedia/commons/e/e2/The_Algebra_of_Mohammed_Ben_Musa_-_page_82b.png"}
            }
        ]}
    ],
    temperature=0.0,
)

print(response.choices[0].message.content)
@xingpingcn xingpingcn added the 🌠 Feature Request New feature or request | 特性与建议 label May 28, 2024
@lobehubbot
Copy link
Member

👀 @xingpingcn

Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible.
Please make sure you have given us as much context as possible.
非常感谢您提交 issue。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

@arvinxx
Copy link
Contributor

arvinxx commented Jun 20, 2024

已经支持,你可以使用 s3

@arvinxx arvinxx closed this as completed Jun 20, 2024
@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Already supported

@lobehubbot
Copy link
Member

@xingpingcn

This issue is closed, If you have any questions, you can comment and reply.
此问题已经关闭。如果您有任何问题,可以留言并回复。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🌠 Feature Request New feature or request | 特性与建议
Projects
None yet
Development

No branches or pull requests

3 participants