robertselvam commited on
Commit
11dba13
·
verified ·
1 Parent(s): a6f64a3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -5,9 +5,9 @@ from langchain_community.chat_message_histories import ChatMessageHistory
5
  from pypdf import PdfReader
6
  import os
7
  import gradio as gr
8
- from langchain_openai import AzureOpenAI
9
 
10
- client = AzureOpenAI(
11
  api_key=os.getenv("AZURE_OPENAI_API_KEY"),
12
  api_version=os.getenv("OPENAI_API_VERSION"),
13
  azure_endpoint=os.getenv("AZURE_OPENAI_ENDPOINT"),
 
5
  from pypdf import PdfReader
6
  import os
7
  import gradio as gr
8
+ from langchain_openai import AzureChatOpenAI
9
 
10
+ client = AzureChatOpenAI(
11
  api_key=os.getenv("AZURE_OPENAI_API_KEY"),
12
  api_version=os.getenv("OPENAI_API_VERSION"),
13
  azure_endpoint=os.getenv("AZURE_OPENAI_ENDPOINT"),