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

Support for Azure OpenAI #43

Closed
lijy91 opened this issue May 1, 2023 · 10 comments
Closed

Support for Azure OpenAI #43

lijy91 opened this issue May 1, 2023 · 10 comments

Comments

@lijy91
Copy link
Contributor

lijy91 commented May 1, 2023

I hope to increase support for Azure OpenAI, just like the openai-python Python library.

#Note: The openai-python library support for Azure OpenAI is in preview.
import os
import openai
openai.api_type = "azure"
openai.api_base = "https://example.openai.azure.com/"
openai.api_version = "2022-12-01"
openai.api_key = os.getenv("OPENAI_API_KEY")

response = openai.Completion.create(
  engine="gpt-35-turbo",
  prompt="",
  temperature=1,
  max_tokens=100,
  top_p=0.5,
  frequency_penalty=0,
  presence_penalty=0,
  stop=None)
@huozhong-in
Copy link

This feature is strongly needed! Please bro!

@anasfik
Copy link
Owner

anasfik commented May 5, 2023

Hello, thank you for reaching out here!

Sure, we can include it in dart_openai as well, I will work on it ASAP!

thank you!

@gavinliu
Copy link

What is the progress?


Other projects have similar implementations for reference, eg: https://github.com/mckaywrigley/chatbot-ui/blob/main/utils/server/index.ts

@yaoshenwang
Copy link

Thank you! We really need the support of Azure Openai

Hello, thank you for reaching out here!

Sure, we can include it in dart_openai as well, I will work on it ASAP!

thank you!

@abasu0713
Copy link

Upvoting this please! 👍

@anasfik
Copy link
Owner

anasfik commented Nov 7, 2023

The work on the Azure implementation is done in the azure branch, please provide me with feedback and manual tests/use of it because I will reflect it from the Python library.

@anasfik
Copy link
Owner

anasfik commented Nov 7, 2023

some work is already being implemented, this needs to be really tested since I edited the core module in the package, please can I get any feedback on it?

@anasfik
Copy link
Owner

anasfik commented Nov 7, 2023

Hello @lijy91 @abasu0713 @gavinliu @yaoshenwang @gavinliu.

Does any of you have a valid account on Azure OpenAI, I need someone to make tests with valid his valid deployment so I can review, Fix, and merge it.

Thank you!

@anasfik
Copy link
Owner

anasfik commented Nov 13, 2023

The progress on Azure is stopping..

I will close this for now!

@anasfik anasfik closed this as completed Nov 13, 2023
@abasu0713
Copy link

@anasfik sorry about missing this thread.. Unfortunately I don't.. Let me get that going and I will hit you back later during the week.

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

6 participants