nitind1 commited on
Commit
4336a60
·
verified ·
1 Parent(s): 315ac74

Upload app.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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= 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
 
 
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