Spaces:
Running
Running
Upload app.py with huggingface_hub
Browse files
app.py
CHANGED
@@ -575,15 +575,15 @@ class NutritionBot:
|
|
575 |
# Initialize a memory client to store and retrieve customer interactions
|
576 |
self.memory = MemoryClient(api_key=MEM0_api_key) # userdata.get("mem0")) # Complete the code to define the memory client API key
|
577 |
|
578 |
-
st.write(f"my_api_key:{my_api_key}")
|
|
|
579 |
try:
|
580 |
self.client = ChatOpenAI(
|
581 |
-
#openai_api_base=endpoint,
|
582 |
model="gpt-4o",
|
583 |
temperature=0.0,
|
584 |
streaming=False, # Explicitly disabling streaming
|
585 |
-
api_key=
|
586 |
-
openai_api_key=
|
587 |
#openai_api_base=endpoint # api_key
|
588 |
)
|
589 |
except Exception as e:
|
|
|
575 |
# Initialize a memory client to store and retrieve customer interactions
|
576 |
self.memory = MemoryClient(api_key=MEM0_api_key) # userdata.get("mem0")) # Complete the code to define the memory client API key
|
577 |
|
578 |
+
#st.write(f"my_api_key:{my_api_key}")
|
579 |
+
st.write(f"api_key:{api_key}")
|
580 |
try:
|
581 |
self.client = ChatOpenAI(
|
|
|
582 |
model="gpt-4o",
|
583 |
temperature=0.0,
|
584 |
streaming=False, # Explicitly disabling streaming
|
585 |
+
api_key=api_key,
|
586 |
+
openai_api_key=api_key, # api_key
|
587 |
#openai_api_base=endpoint # api_key
|
588 |
)
|
589 |
except Exception as e:
|