Questions tagged [azure-openai]

147 questions
0
votes
0 answers

Integrating Daily Updated Product Inventory with ChatGPT for Customized Responses

I am developing a chatbot using ChatGPT, which recommends recipes to users. A unique challenge I face is ensuring ChatGPT suggests recipes based solely on the ingredients we currently have in stock. Since our inventory changes daily, ChatGPT needs…
0
votes
0 answers

Return Eventstream response from Azure openai to nextjs

In order to not expose the api key of my Azure openai ,I create a nextjs API that send the request to openai and get the stream and send it back to the Front End ,I created the pages/api/gpt Here is my code import { OpenAIError} from…
0
votes
0 answers

C#: How to create a mock Azure.AI.OpenAI.ChatCompletions object to test functions using OpenAI?

I have a simple function that takes a prompt, sends it to a model on our Azure OpenAI instance, and returns the content of the LLM's response: public async Task GetChatCompletion(string deploymentName, ChatCompletionsOptions…
0
votes
0 answers

Azure OpenAI AND Summarize an article (abstractive) with C# and TypeScript

I want to give users the ability to summarize long text so I started with an example from the Azure AI Studio. Completions playground it works fine in the studio But then I try the code in Typescript and in C# and always get 1 choice with text:""…
Ofer Gal
  • 707
  • 1
  • 10
  • 32
0
votes
0 answers

Azure OpenAI privacy

I'm working through Azure OpenAI and a little confused about the privacy. The docs speak to the fact that nothing leaves the sanctity of the Azure environment. However, when I look at the code in the playground, I see the openai library being…
0
votes
0 answers

Facing Issue in AzureOpenAI connection with SQL Database

I have done below code for connecting the AzureOpenAI with SQL using langchain, but it is failing, from langchain.agents import create_sql_agent from langchain.agents.agent_toolkits import SQLDatabaseToolkit from langchain.sql_database import…
0
votes
0 answers

How to troubleshoot the openai error of missing deployment id and engine?

I am trying to build a simple streamlit app in python using azure AI. I am getting the following error which I do not know how to resolve: InvalidRequestError: Must provide an 'engine' or 'deployment_id' parameter to create a
0
votes
0 answers

Azure Redis Semantic Cache connection error

I am trying to connect to the redis semantic cache using the below code import redis import langchain from langchain.cache import RedisSemanticCache from langchain.embeddings import OpenAIEmbeddings from dotenv import load_dotenv # Connect to the…
0
votes
0 answers

GPT-4-0613 Finish_Reason Null Issue in Streaming Mode

I am facing an issue while using the latest OpenAI GPT-4-0613 models in streaming mode. Specifically, I have noticed that for some cases, the finish_reason field in the response comes as Null instead of the expected value 'stop' for the last token.…
MAC
  • 1,345
  • 2
  • 30
  • 60
0
votes
0 answers

Parsing Error in CSV Agent Using Azure Open AI

I have a csv dataset with a few simple columns: dummy = pd.DataFrame({ 'Status': ['BP', 'CS', 'CF', 'DC', 'I', 'L', 'Na', 'N', 'NN', 'OA', 'UR'], 'V1': [349, 338, 103, 494, 252, 250, 496, 352, 156, 216, 381], 'V2': [494, 196, 285, 181, 336, 117,…
Kenneth Singh
  • 335
  • 1
  • 3
  • 15
0
votes
0 answers

How to integrate Azure Open AI with Azure Cognitive Search using custom parsing?

I've setup Azure Cognitive Search Service that is indexing JSON data from Azure Storage. This JSON contains core-fields after lot of JOIN Operations based on D365 Sales Data. I've also setup Azure Open AI Service and have added above Cognitive Index…
Sanket Tarun Shah
  • 637
  • 10
  • 28
0
votes
0 answers

Typechat not responding with the right json format

I'm using TypeChat to get AzureOpenAI Api response in json format. I'm using this function to send request export const getSummary = async (mails:string) =>{ return new Promise(async (resolve,reject)=> { const response= await …
infodev
  • 4,673
  • 17
  • 65
  • 138
0
votes
1 answer

Integrating an Azure web app and Azure OpenAI with a virtual network

I'm trying to secure my Azure OpenAI web app as much as possible, but I can't figure out how to keep traffic behind the application gateway inside my virtual network. Here's what I have so far: Application gateway with a public IP (right now it's…
0
votes
0 answers

azure openai gpt-35-turbo does not answer Chinese prompt in Chinse

I am trying the chat playground for azure openai. I have uploaded two documents, one English and one Chinese. I found that it can answer English to my english doc. However, it cannot answer Chinese when I type Chinese question. How should I…
want_to_be_calm
  • 1,477
  • 3
  • 23
  • 41
0
votes
1 answer

Is it possible to give AzureChatOpenAI 'rules' to follow?

I am working on a 'chat bot' for a work project that will let me 'talk' with documents. Part of the project is being able to have the AI know when not to answer certain questions. Essentially, I want to protect PII due to HIPPA laws, so if a user…