Spaces:
Running
Running
Upload app.py with huggingface_hub
Browse files
app.py
CHANGED
@@ -570,7 +570,7 @@ class NutritionBot:
|
|
570 |
|
571 |
self.client = ChatOpenAI(
|
572 |
model_name="gpt-4o-mini", # Specify the model to use (e.g., GPT-4 optimized version)
|
573 |
-
api_key =
|
574 |
#endpoint = endpoint, # config.get("OPENAI_API_BASE"),
|
575 |
temperature=0 # Controls randomness in responses; 0 ensures deterministic results
|
576 |
)
|
|
|
570 |
|
571 |
self.client = ChatOpenAI(
|
572 |
model_name="gpt-4o-mini", # Specify the model to use (e.g., GPT-4 optimized version)
|
573 |
+
api_key = my_api_key, # config.get("API_KEY"), # API key for authentication
|
574 |
#endpoint = endpoint, # config.get("OPENAI_API_BASE"),
|
575 |
temperature=0 # Controls randomness in responses; 0 ensures deterministic results
|
576 |
)
|