Upload app.py with huggingface_hub
Browse files
app.py
CHANGED
|
@@ -436,8 +436,8 @@ class SemanticBot:
|
|
| 436 |
# Initialize the OpenAI client using the provided credentials
|
| 437 |
self.client = ChatOpenAI(
|
| 438 |
model_name="gpt-4o-mini", # Specify the model to use (e.g., GPT-4 optimized version)
|
| 439 |
-
api_key=
|
| 440 |
-
openai_api_base =
|
| 441 |
temperature=0 # Controls randomness in responses; 0 ensures deterministic results
|
| 442 |
)
|
| 443 |
|
|
|
|
| 436 |
# Initialize the OpenAI client using the provided credentials
|
| 437 |
self.client = ChatOpenAI(
|
| 438 |
model_name="gpt-4o-mini", # Specify the model to use (e.g., GPT-4 optimized version)
|
| 439 |
+
api_key= os.environ("API_KEY"), # API key for authentication
|
| 440 |
+
openai_api_base = os.environ("OPENAI_API_BASE"),
|
| 441 |
temperature=0 # Controls randomness in responses; 0 ensures deterministic results
|
| 442 |
)
|
| 443 |
|