susmitsil commited on
Commit
a2a3ee4
·
verified ·
1 Parent(s): e72fe21
Files changed (1) hide show
  1. app.py +6 -0
app.py CHANGED
@@ -39,6 +39,12 @@ class BasicAgent:
39
  # print("and that your GOOGLE_API_KEY environment variable is set.")
40
  # raise e # Re-raise the exception to fail initialization if model fails
41
 
 
 
 
 
 
 
42
  model = AzureChatOpenAI(
43
  azure_endpoint=os.getenv("AZURE_API_ENDPOINT"),
44
  azure_deployment=os.getenv("AZURE_DEPLOYMENT_NME"), # or your deployment
 
39
  # print("and that your GOOGLE_API_KEY environment variable is set.")
40
  # raise e # Re-raise the exception to fail initialization if model fails
41
 
42
+ print(f"AZURE_API_ENDPOINT: {os.getenv('AZURE_API_ENDPOINT')}")
43
+ print(f"AZURE_DEPLOYMENT_NME: {os.getenv('AZURE_DEPLOYMENT_NME')}")
44
+ print(f"AZURE_API_VERSION: {os.getenv('AZURE_API_VERSION')}")
45
+ # Be cautious printing the key, maybe just check if it exists
46
+ print(f"AZURE_OPENAI_KEY set: {'AZURE_OPENAI_KEY' in os.environ}")
47
+
48
  model = AzureChatOpenAI(
49
  azure_endpoint=os.getenv("AZURE_API_ENDPOINT"),
50
  azure_deployment=os.getenv("AZURE_DEPLOYMENT_NME"), # or your deployment