Questions tagged [azure-openai]

147 questions
0
votes
2 answers

Why only Python 3.8 - Azure ML kernel can find openai module in notebook

In Azure ML Studio, I created a notebook, installed some packages and tried to run a code !pip install -r requirements.txt above worked ! pip show openai Result of pip show openai Name: openai Version: 0.25.0 Summary: Python client library for the…
Manu Chadha
  • 15,555
  • 19
  • 91
  • 184
0
votes
1 answer

How to run a notebook in Azure for OpenAI project

I am following (or trying follow!) the steps in https://learn.microsoft.com/en-us/azure/cognitive-services/openai/tutorials/embeddings?tabs=powershell I have created Azure Open AI (aoai) resource and deployed open ai models Then I opened PowerShell…
Manu Chadha
  • 15,555
  • 19
  • 91
  • 184
0
votes
0 answers

How to fine tune an OpenAI model so that it can answer questions in a document?

I want to fine tune an OpenAI model so that it can answer questions to a document that it has seen while training. What should my training data look like? I read that it needs to look like prompt and completion pairs, but I'm not sure on how to…
0
votes
0 answers

Most likely due to a circular import error in Azure Open AI

I would like to sample code to run in Visual Studio Code in Mac. However I cannot get this simple code to work. What can I try next? *(base) johnsmith@Johns-MBP ~ % /usr/bin/python3 /Users/johnsmith/Documents/Python/openai_test.py Traceback (most…
Kenny_I
  • 2,001
  • 5
  • 40
  • 94
0
votes
1 answer

How to send ChatGPT request by Postman to Azure OpenAI?

I would like to ask question from ChatGPT of Azure OpenAI I have added Post URL. I have added Param "API_KEY" (key copied from Azure portal) I have added json body. I get access denied. I suppose key must be correct. Could somebody send sample…
Kenny_I
  • 2,001
  • 5
  • 40
  • 94
0
votes
0 answers

Azure OpenAI service base models are not fine-tunable

When creating a custom model from the UI, the base model dropdown list is empty. When I list models in Python SDK, models are showing fine_tune=false for all base models. See an example below. Has anyone run into this? How do I make a model…
0
votes
1 answer

Azure OpenAI - built-in policy for Authentication

There are two methods for authentication listed in the REST API documentation: https://learn.microsoft.com/en-us/azure/cognitive-services/openai/reference I see that an Azure policy…
0
votes
4 answers

OpenAI API error: "No module named 'openai.embeddings_utils'; 'openai' is not a package"

I want to use openai.embeddings_utils import get_embeddings So already install openai Name: openai Version: 0.26.5 Summary: Python client library for the OpenAI API Home-page: https://github.com/openai/openai-python Author: OpenAI Author-email:…
lima
  • 89
  • 3
  • 8
0
votes
2 answers

OpenAI Embeddings Cosine Similarity Search 'Input vector should be 1-D' error

I am getting following error in Jupyter Notebook --------------------------------------------------------------------------- ValueError Traceback (most recent call last) Cell In[2], line 39 37 query = input("Enter…
-1
votes
0 answers

Error in openai : Error communicating with OpenAI: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))

Code: response = openai.ChatCompletion.create( timeout=10, deployment_id=deployment_name, model="gpt-3.5-turbo", # The name of the OpenAI chatbot model to use messages=message_log, # The conversation history up to…
krisskad
  • 131
  • 9
-1
votes
1 answer

override langchain llm completion call to handle 400 moderated response

Using langchain==0.0.198, langchainplus-sdk==0.0.8, python==3.10 I am working with openAI, Azure. Currently, the moderation endpoint that was available in the non-Azure openAI is no longer available with Azure openAI, and has been "bundled" with the…
camelBack
  • 748
  • 2
  • 11
  • 30
-1
votes
1 answer

ChromaDB API deployment does not work with Python LangChain on Windows Machine

I have installed chromaDB via pip using command: pip install chromadb LangChain integration with other libraries seem to be working fine. I get the following error:
1 2 3
9
10