How To Consume Azure OpenAI Model Programmatically Using Python
HTML-код
- Опубликовано: 30 апр 2023
- This is the 3rd video in OpenAI Azure series and this time, we will learn how to consume the model which we have already deployed in Azure.
Blog: www.shwetalodha.in/
Medium: / shweta-lodha
* REFERRAL LINK ************
Medium referral link: / membership
* REFERRAL LINK ************
###### MORE PLAYLISTS ######
⭐Python for beginners: • #1 Python for Beginner...
⭐Python Pandas: • #1 Python Pandas: Intr...
⭐Python tips and tricks: • Python Tip: Take Multi...
⭐Jupyter tips & tricks: • Jupyter Tip: Run Termi...
⭐Microsoft Azure: • Know Response Time Of ...
⭐Azure ML and AI: • Getting Started with I...
⭐Visual Studio Code a.k.a. VS Code: • How to get started wit...
#python #pythonprogramming #tipsandtricks - Наука
Very clear instructions! Thank you for this tutorial. Looking forward to more videos on Azure Open AI.
More to come!
I am always getting error as "sqlite3.OperationalError: row value misused" on the line : doc_search = Chroma(texts, embeddings)
Can you please help me on this?
Great tutorial , Please create video for different use cases for Open AI
Sure I will. Please feel free to suggest use cases, if you have in mind.
Where can I find the API documentation? Is it the same as OpenAI API? An example just to curl this API would be nice.
learn.microsoft.com/en-us/azure/cognitive-services/openai/overview
is openai subscription is need & does it has limit of api token btw thanks for teaching
If you are using Azure OpenAI then you don’t need OpenAI subscription. Yes, please check documentation for pricing details
What if i have to add the system prompt also in the completion call?
You have to use chat api
Can you make a video on how to consume Azure OpenAI model through Power BI? :)
Will make sometime soon
Can we use llm index search using azure open ai
Yes, indeed.
i guess now we gont have text-davinci model, can you confirm please?
Yes, it is obsolete
How to get this done when using OpenAi from Langchain instead
Will share it shortly.
@@shweta-lodha just got it working.. But looking forward to it 👍
Hello.Will it be possible for you to provide the GitHub link for the above code
Most of the code is available on my Medium, link in profile section
@shweta , how to insert the key under code [ openai.api_key = os.getenv("OPENAI_API_KEY")] , so inplace of a open_API_KEY i mentioned the copied key from portal but its still showing the following error:
AuthenticationError: No API key provided. You can set your API key in code using 'openai.api_key = ', or you can set the environment variable OPENAI_API_KEY=).
kindly help
I am facing the same issue pls advice
That's becuase your not activated the env or not using that env for this project. You can simply revome that os.getenv() method and copy your api there , it will work.
OPENAI_API_KEY= or use python package dotenv
You have great content but an incredibly annoying high pitch noise in your videos. Please use a different mic or editing software! You have great content!
Sorry about that