Upload app.py with huggingface_hub
Browse files
app.py
CHANGED
@@ -619,6 +619,11 @@ class NutritionBot:
|
|
619 |
api_version=os.getenv('AZURE_OPENAI_APIVERSION'), # API version being used
|
620 |
temperature=0 # Controls randomness in responses; 0 ensures deterministic results
|
621 |
)
|
|
|
|
|
|
|
|
|
|
|
622 |
"""
|
623 |
Initialize the NutritionBot class, setting up memory, the LLM client, tools, and the agent executor.
|
624 |
"""
|
|
|
619 |
api_version=os.getenv('AZURE_OPENAI_APIVERSION'), # API version being used
|
620 |
temperature=0 # Controls randomness in responses; 0 ensures deterministic results
|
621 |
)
|
622 |
+
print("Connecting to Azure OpenAI with:")
|
623 |
+
print("Model:", os.getenv("CHATGPT_MODEL"))
|
624 |
+
print("Endpoint:", os.getenv("AZURE_OPENAI_ENDPOINT"))
|
625 |
+
print("API Version:", os.getenv("AZURE_OPENAI_APIVERSION"))
|
626 |
+
print("Key Present:", os.getenv("AZURE_OPENAI_API_KEY") is not None)
|
627 |
"""
|
628 |
Initialize the NutritionBot class, setting up memory, the LLM client, tools, and the agent executor.
|
629 |
"""
|