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
  • НаукаНаука

Комментарии • 30

  • @heyitsKim1912
    @heyitsKim1912 11 месяцев назад

    Very clear instructions! Thank you for this tutorial. Looking forward to more videos on Azure Open AI.

  • @chanchawat091
    @chanchawat091 10 месяцев назад

    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?

  • @Bhrugujani
    @Bhrugujani Год назад +2

    Great tutorial , Please create video for different use cases for Open AI

    • @shweta-lodha
      @shweta-lodha  Год назад

      Sure I will. Please feel free to suggest use cases, if you have in mind.

  • @loganhallucinates
    @loganhallucinates Год назад

    Where can I find the API documentation? Is it the same as OpenAI API? An example just to curl this API would be nice.

    • @shweta-lodha
      @shweta-lodha  Год назад +1

      learn.microsoft.com/en-us/azure/cognitive-services/openai/overview

  • @sensei_kai
    @sensei_kai Год назад

    is openai subscription is need & does it has limit of api token btw thanks for teaching

    • @shweta-lodha
      @shweta-lodha  Год назад

      If you are using Azure OpenAI then you don’t need OpenAI subscription. Yes, please check documentation for pricing details

  • @ayushjain8075
    @ayushjain8075 10 месяцев назад

    What if i have to add the system prompt also in the completion call?

  • @gaganmeetsingh7976
    @gaganmeetsingh7976 11 месяцев назад +1

    Can you make a video on how to consume Azure OpenAI model through Power BI? :)

  • @nitintiwari2297
    @nitintiwari2297 Год назад

    Can we use llm index search using azure open ai

  • @abhisheksinha1999
    @abhisheksinha1999 11 месяцев назад

    i guess now we gont have text-davinci model, can you confirm please?

  • @1984amitsince
    @1984amitsince Год назад

    How to get this done when using OpenAi from Langchain instead

    • @shweta-lodha
      @shweta-lodha  Год назад

      Will share it shortly.

    • @1984amitsince
      @1984amitsince Год назад +1

      @@shweta-lodha just got it working.. But looking forward to it 👍

  • @AbhiShek-my5kk
    @AbhiShek-my5kk 5 месяцев назад

    Hello.Will it be possible for you to provide the GitHub link for the above code

    • @shweta-lodha
      @shweta-lodha  5 месяцев назад

      Most of the code is available on my Medium, link in profile section

  • @shobhittiwari6443
    @shobhittiwari6443 Год назад

    @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

    • @roker7768
      @roker7768 11 месяцев назад

      I am facing the same issue pls advice

    • @vishnuk3925
      @vishnuk3925 8 месяцев назад

      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.

    • @harrydadson7467
      @harrydadson7467 8 месяцев назад +1

      OPENAI_API_KEY= or use python package dotenv

  • @ScottNDeckercom
    @ScottNDeckercom 10 месяцев назад +1

    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!