Update app.py
Browse files
app.py
CHANGED
|
@@ -78,6 +78,7 @@ with st.sidebar:
|
|
| 78 |
if api_key:
|
| 79 |
os.environ["GEMINI_API_KEY"] = api_key
|
| 80 |
os.environ["GOOGLE_API_KEY"] = api_key
|
|
|
|
| 81 |
|
| 82 |
st.divider()
|
| 83 |
|
|
@@ -809,6 +810,7 @@ class BoardPlanAnalyzer:
|
|
| 809 |
response = litellm.completion(
|
| 810 |
model=self.llm,
|
| 811 |
messages=messages,
|
|
|
|
| 812 |
response_format={"type": "json_object"}
|
| 813 |
)
|
| 814 |
|
|
|
|
| 78 |
if api_key:
|
| 79 |
os.environ["GEMINI_API_KEY"] = api_key
|
| 80 |
os.environ["GOOGLE_API_KEY"] = api_key
|
| 81 |
+
os.environ["OPENAI_API_KEY"] = api_key
|
| 82 |
|
| 83 |
st.divider()
|
| 84 |
|
|
|
|
| 810 |
response = litellm.completion(
|
| 811 |
model=self.llm,
|
| 812 |
messages=messages,
|
| 813 |
+
api_key=os.environ.get("GEMINI_API_KEY"),
|
| 814 |
response_format={"type": "json_object"}
|
| 815 |
)
|
| 816 |
|