Questions tagged [azure-openai]

147 questions
2
votes
1 answer

Correct way to return stream from azure openai sdk api

I am trying to return stream result from azure openai api, could anyone tell if the last line in below method will return full content or will it miss the content not received from api. . Also, Is this the correct way to return stream from Azure…
s_v
  • 132
  • 1
  • 14
2
votes
1 answer

Image to text using Azure OpenAI GPT4

I have an Azure open AI Account and GPT4 model deployed. Can I use its API for image-to-text description? If yes, how I will give it the image? I am using this code. But it throws me an error. import openai # open ai key openai.api_type =…
2
votes
0 answers

TypeError in Azure OpenAI with Python package: Unexpected keyword argument 'organization

I am trying to use the openai Python package to interact with the Azure OpenAI API. I have written the following code: import os import openai openai.api_type = "azure" openai.api_base = "pseudo_base" openai.api_version =…
Kristian
  • 88
  • 8
2
votes
1 answer

Creating ChatBot from custom Knowledge Base using ChatGPT

Problem Description: We have a strong and huge Knowledge Base internally for our organization which contains a lot of documentation, policies and guidelines, tutorials, question answers, employee's helpful forms and documents like leave form or…
2
votes
1 answer

How to stop GPT-3.5-Turbo model from generating text (azure)?

In my use case I am using openai models hosted on azure. I am trying to generate a list of senteces or words with a specific length. Lets take this prompt as an example: Give 10 Examples of pizza ingredients: 1. tomatoes 2. mushrooms The…
dude
  • 79
  • 6
2
votes
1 answer

can we use azure load balancer on a multiple Azure openai services in azure

I have resource group in azure. I have created 3 Azure openai service but I am wondering if it is possible to place a load balancer on these 3 app services to balance the load between them, Is it possible to do so?? Or Which load balancer technique…
Sanjeev Gautam
  • 353
  • 3
  • 15
1
vote
1 answer

No region has availability Azure OpenIA

On the microsoft website it says that only the North USA zone is congested, but I tried it with: Australia, East US, East US2 And none of them work. For each test I created a new resource imagining it to be this problem. Error some of the tests
Dorathoto
  • 201
  • 7
  • 17
1
vote
1 answer

How to delete documents in LangChain vectorstore

I am following LangChain's tutorial to create an example selector to automatically select similar examples given an input. example_selector = SemanticSimilarityExampleSelector.from_examples( # This is the list of examples available to select…
Yeti123
  • 11
  • 1
1
vote
0 answers

azure open ai embeddings qna with subset of files uploaded

I am new to Azure OpenAI and below is what I am trying to achieve. I want to use Azure OpenAI services for qna on a pdf file. I have gone through few documents and blogs related to this and this is what I have understood so far. I can upload my…
1
vote
2 answers

Azure OpenAI gpt-35-turbo nondeterministic with temperature 0

I have noticed that my deployment of gpt-35-turbo on "Azure AI Studio" is not giving consistent responses to my chat completion prompts even when I set the temperature to 0. The longer the prompt, the more inconsistency I see. I thought the idea…
alex9311
  • 1,230
  • 1
  • 18
  • 42
1
vote
1 answer

Error when custom data is added to Azure OpenAI Service Deployment

I receive the following error when adding my custom data which is a .txt file (it doesn't matter whether I add it via Azure Cognitive Search, Azure Blob Storage, or File Upload or whether the respective Congnitive Search index contains any…
1
vote
2 answers

PermissionError while executing langchain with AzureOpenAI

I'm working with AzureOpenAI and langchain, constantly getting hit by PermissionError. This mostly could be due to the proxy, but can someone please check the code -- from langchain.llms import OpenAI, AzureOpenAI from langchain.prompts import…
Aniruddha
  • 3,157
  • 4
  • 32
  • 48
1
vote
0 answers

How do I do function calling in Azure Openai using the javascript sdk

I want to be able to call functions based on the user input, I could do this with the openai library but can't find a way to do so in the azure openai library Below is the code from azure openai in python that is able to do what I want to…
noobcoder
  • 11
  • 3
1
vote
2 answers

Why do I get the error "Unrecognized request argument supplied: functions" when using `functions` when calling Azure OpenAI GPT?

I'm trying to use functions when calling Azure OpenAI GPT, as documented in https://platform.openai.com/docs/api-reference/chat/create#chat/create-functions I use: import openai openai.api_type = "azure" openai.api_base =…
Franck Dernoncourt
  • 77,520
  • 72
  • 342
  • 501
1
vote
1 answer

Unwanted request headers leading to a bad response

I'm calling the openai api like so: const response = await fetch("https://api.openai.com/v1/completions", { method: "POST", headers: { "Content-Type": "application/json", Authorization: "Bearer ..., }, body:…
Vayun
  • 95
  • 1
  • 10
1
2
3
9 10