Questions tagged [azure-openai]
147 questions
0
votes
1 answer
what should I do to make the azure openai return stream events with java 11
I am using this code to return a stream response when using azure openai api:
public void getChatCompletion(SseEmitter emitter, String prompt, String azureOpenaiKey) {
String endpoint = "https://xxxx.openai.azure.com/";
String…

Dolphin
- 29,069
- 61
- 260
- 539
0
votes
0 answers
Azure OpenAI: Unable to deploy new model, the deploy button is in an unclickable state
Unable to deploy new model, the deploy button is in an unclickable state, but I am the service owner and truely have full permissions.
and from the 'view my access' page we can find that my account is the service owner with cognitive services…

RYAN14
- 1
- 2
0
votes
1 answer
How to limit the domain that is allowed to access an azure resource
I write an app next js and deployed to vercel . however I used azure service called azure open ai . In the request I send on azure open ai in the header of the request contains the api key . I don't want the user to be able to get this api key and…

CDN
- 394
- 6
- 15
0
votes
1 answer
resource not found with Azure OpenAI service
when I am using this demo code to use the Azure OpenAI service in Java 11:
package com.dolphin.soa.post.config.ai.azure;
import com.azure.ai.openai.OpenAIClient;
import com.azure.ai.openai.OpenAIClientBuilder;
import…

Dolphin
- 29,069
- 61
- 260
- 539
0
votes
0 answers
Open AI error: "InvalidRequestError: Resource not found"
The code I was copy from other people, the purpose of code is testing AzureOpenai API.However I am facing some error.
`from langchain.llms import AzureOpenAI
import os
import openai
openai.api_key = os.getenv("")
openai.api_base =…
0
votes
1 answer
Microsoft Azure Engine for Azure Openai
I'm currently doing a tutorial which works with OpenAi and Microsoft Azure and I'm now asked to enter my
// PARAMETERS FOR AZURE OPENAI SERVICES CHAT COMPLETION API
const ENGINE = "YOUR_ENGINE_OF_AZURE_OPENAI_SERVICES"; // DEPLOYMENT ID FOR…

linh
- 1
- 1
0
votes
1 answer
How can I select the proper openai.api_version?
I read on https://learn.microsoft.com/en-us/azure/cognitive-services/openai/how-to/chatgpt?pivots=programming-language-chat-completions:
openai.api_version = "2023-05-15"
and on…

Franck Dernoncourt
- 77,520
- 72
- 342
- 501
0
votes
1 answer
How to handle token limit in ChatGPT3.5 Turbo when creating tables?
End user can copy tables from a pdf like
, paste the text in openai playground
bird_id bird_posts bird_likes
012 2 5
013 0 4
056 57 70
612 0 12
and will prompt the gpt with "Create table with the given text"
and gpt generates a table like…

usr_lal123
- 650
- 12
- 28
0
votes
2 answers
Azure Semantic Kernel Example with Embeddings and Pinecone
Microsoft recently released Semantic Kernel on Azure. It is a mechanism around the Azure OpenAI API, similar to LangChain, but both in C# and Python. It has a bunch of examples, and I am trying to run Example38 in my project. Specifically, this…

Leon
- 165
- 12
0
votes
1 answer
unable to access authentication token of cognitive services endpoint in Azure
I am trialling this tutorial - https://github.com/Azure-Samples/openai/blob/cf0f19f36a30925e3891137b0bc2539e25687cac/Basic_Samples/AAD_Integration/aad_integration_example_sdk.ipynb
In Azure, I have created different resources groups - there is one…

Manu Chadha
- 15,555
- 19
- 91
- 184
0
votes
1 answer
What is the difference between using Authorisation Header and api-key header. One works but other doesn't
I am trying steps from this tutorial - https://github.com/Azure-Samples/openai/blob/cf0f19f36a30925e3891137b0bc2539e25687cac/Basic_Samples/AAD_Integration/setup_aad.md
I tried to run the completion from Azure CLI. I notice that if I use…

Manu Chadha
- 15,555
- 19
- 91
- 184
0
votes
0 answers
unable to access Azure OpenAI endpoint from desktop CLI
I am trying steps from this tutorial - https://github.com/Azure-Samples/openai/blob/cf0f19f36a30925e3891137b0bc2539e25687cac/Basic_Samples/AAD_Integration/setup_aad.md
I tried to run the completion from Azure CLI, which worked fine. However, it…

Manu Chadha
- 15,555
- 19
- 91
- 184
0
votes
1 answer
AzureOpenAI rejects LangChain's Self-Critique Chain (Constitutional AI) Every Time
I am encountering an issue with the LangChain's Self-Critique Chain (Constitutional AI) when using it with AzureOpenAI. While it works perfectly fine with OpenAI, I receive the following error message when using…

hmfGeek
- 31
- 2
0
votes
1 answer
Always 500 "Internal server error" when requesting OpenAI API with stream option
For some reason, whenever I do:
response = openai.ChatCompletion.create(
engine="chatgpt",
model="gpt-35-turbo",
messages=[
{"role": "system", "content": "some text here"},
{"role": "user", "content": "some more text…

skyork
- 7,113
- 18
- 63
- 103
0
votes
0 answers
Store previous conversations with azure openai
I am dabbling with Azure's OpenAI service, and I want to be able to store previous conversations for future recall. I know that I can take each prior prompt-and-answer and send them as part of the new prompt, but obviously this will eventually hit…

ArcaneLight
- 83
- 1
- 11