Upload app.py with huggingface_hub
Browse files
app.py
CHANGED
@@ -642,8 +642,8 @@ class NutritionBot:
|
|
642 |
|
643 |
self.client = ChatOpenAI(
|
644 |
model_name="gpt-4o-mini", # Specify the model to use (e.g., GPT-4 optimized version)
|
645 |
-
api_key=api_key #config.get("API_KEY"), # API key for authentication
|
646 |
-
base_url=endpoint #config.get("OPENAI_API_BASE"),
|
647 |
temperature=0, # Controls randomness in responses; 0 ensures deterministic results
|
648 |
streaming=False
|
649 |
)
|
|
|
642 |
|
643 |
self.client = ChatOpenAI(
|
644 |
model_name="gpt-4o-mini", # Specify the model to use (e.g., GPT-4 optimized version)
|
645 |
+
api_key=api_key, #config.get("API_KEY"), # API key for authentication
|
646 |
+
base_url=endpoint, #config.get("OPENAI_API_BASE"),
|
647 |
temperature=0, # Controls randomness in responses; 0 ensures deterministic results
|
648 |
streaming=False
|
649 |
)
|