Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -519,7 +519,7 @@ class NutritionBot:
|
|
| 519 |
# Initialize the OpenAI client using the provided credentials
|
| 520 |
self.client = ChatOpenAI(
|
| 521 |
model_name="gpt-4o-mini", # Specify the model to use (e.g., GPT-4 optimized version)
|
| 522 |
-
api_key=os.environ["
|
| 523 |
base_url = os.environ["OPENAI_API_BASE"],
|
| 524 |
temperature=0 # Controls randomness in responses; 0 ensures deterministic results
|
| 525 |
)
|
|
|
|
| 519 |
# Initialize the OpenAI client using the provided credentials
|
| 520 |
self.client = ChatOpenAI(
|
| 521 |
model_name="gpt-4o-mini", # Specify the model to use (e.g., GPT-4 optimized version)
|
| 522 |
+
api_key=os.environ["API_KEY"], # API key for authentication
|
| 523 |
base_url = os.environ["OPENAI_API_BASE"],
|
| 524 |
temperature=0 # Controls randomness in responses; 0 ensures deterministic results
|
| 525 |
)
|