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

[Question] dalle3 azure 配置方式? #797

Closed
ghost opened this issue Dec 24, 2023 · 6 comments
Closed

[Question] dalle3 azure 配置方式? #797

ghost opened this issue Dec 24, 2023 · 6 comments
Labels
💵 Funded on Issuehunt This issue has been funded on Issuehunt 😇 Help Wanted Need help | 需要帮助

Comments

@ghost
Copy link

ghost commented Dec 24, 2023

Issuehunt badges

🧐 问题描述 | Proposed Solution

dalle3 plugin是否支持 azure 调用?目前未找到配置地方。

附dalle3 azure 调用示例:

# Note: DALL-E 3 requires version 1.0.0 of the openai-python library or later
import os
from openai import AzureOpenAI
import json

client = AzureOpenAI(
    api_version="2023-12-01-preview",
    azure_endpoint="https://{service-name}.openai.azure.com",
    api_key=os.environ["AZURE_OPENAI_API_KEY"],
)

result = client.images.generate(
    model="dall-e-3", # the name of your DALL-E 3 deployment
    prompt="<the user's prompt>",
    n=1
)

image_url = json.loads(result.model_dump_json())['data'][0]['url']

📝 补充信息 | Additional Information

No response


IssueHunt Summary

Backers (Total: $2.00)

Become a backer now!

Or submit a pull request to get the deposits!

Tips

@ghost ghost added the 😇 Help Wanted Need help | 需要帮助 label Dec 24, 2023
@lobehubbot
Copy link
Member

👀 @shancwovo

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。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

Copy link

issuehunt-oss bot commented Dec 26, 2023

@sen-capoo has funded $1.00 to this issue.


@issuehunt-oss issuehunt-oss bot added the 💵 Funded on Issuehunt This issue has been funded on Issuehunt label Dec 26, 2023
Copy link

issuehunt-oss bot commented Dec 26, 2023

@sen-capoo has funded $1.00 to this issue.


@arvinxx
Copy link
Contributor

arvinxx commented Jan 4, 2024

看调用方式应该是支持的。你参考 #178 部署一个 dalle3 的模型服务应该就好了

@lobehubbot
Copy link
Member

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


Judging from the calling method, it should be supported. You can refer to #178 to deploy a dalle3 model service.

@ghost ghost closed this as completed Jan 7, 2024
@lobehubbot
Copy link
Member

✅ @shancwovo

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

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💵 Funded on Issuehunt This issue has been funded on Issuehunt 😇 Help Wanted Need help | 需要帮助
Projects
None yet
Development

No branches or pull requests

2 participants