Spaces:
Paused
Paused
Update main.py
Browse files
main.py
CHANGED
|
@@ -318,9 +318,9 @@ def sibyl_system(
|
|
| 318 |
|
| 319 |
@app.post("/UFoP/gemini-the-oracle", response_model=SuccessResponse, responses={422: {"model": ErrorStatus}})
|
| 320 |
def gemini_oracle(item: GeminiPro):
|
| 321 |
-
oracle_base = ORACLE_TOKEN
|
| 322 |
if item.is_multi_chat:
|
| 323 |
selected_api_key = ASSISTANT_GOOGLE_API_KEYS or item.gemini_api_key
|
|
|
|
| 324 |
try:
|
| 325 |
geni = GeminiLatest(
|
| 326 |
api_key=selected_api_key,
|
|
|
|
| 318 |
|
| 319 |
@app.post("/UFoP/gemini-the-oracle", response_model=SuccessResponse, responses={422: {"model": ErrorStatus}})
|
| 320 |
def gemini_oracle(item: GeminiPro):
|
|
|
|
| 321 |
if item.is_multi_chat:
|
| 322 |
selected_api_key = ASSISTANT_GOOGLE_API_KEYS or item.gemini_api_key
|
| 323 |
+
oracle_base = ORACLE_TOKEN or item.oracle_base
|
| 324 |
try:
|
| 325 |
geni = GeminiLatest(
|
| 326 |
api_key=selected_api_key,
|