Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -40,12 +40,15 @@ def delay_execution_10(pagent, **kwargs) -> bool:
|
|
40 |
class MyAgent:
|
41 |
def __init__(self):
|
42 |
gemini_api_key = os.getenv("GEMINI_API_KEY")
|
|
|
43 |
if not gemini_api_key:
|
44 |
raise ValueError("GEMINI_API_KEY not set in environment variables.")
|
45 |
|
46 |
self.model = LiteLLMModel(
|
47 |
-
model_id="gemini/gemini-2.0-flash-lite",
|
48 |
-
|
|
|
|
|
49 |
system_prompt=SYSTEM_PROMPT
|
50 |
)
|
51 |
|
|
|
40 |
class MyAgent:
|
41 |
def __init__(self):
|
42 |
gemini_api_key = os.getenv("GEMINI_API_KEY")
|
43 |
+
openai_api_key = os.getenv("OPENAI_API_KEY")
|
44 |
if not gemini_api_key:
|
45 |
raise ValueError("GEMINI_API_KEY not set in environment variables.")
|
46 |
|
47 |
self.model = LiteLLMModel(
|
48 |
+
# model_id="gemini/gemini-2.0-flash-lite",
|
49 |
+
model_id="openai/gpt-4o",
|
50 |
+
# api_key=gemini_api_key,
|
51 |
+
api_key=openai_api_key,
|
52 |
system_prompt=SYSTEM_PROMPT
|
53 |
)
|
54 |
|