Spaces:
Building
Building
Upload app.py
Browse files
app.py
CHANGED
@@ -214,6 +214,7 @@ def switch_api_key():
|
|
214 |
logger.info(f"当前 API key: {current_api_key[:11]}...{current_api_key[-3:]}")
|
215 |
|
216 |
GEMINI_MODELS = [
|
|
|
217 |
{"id": "gemini-1.5-flash-8b-latest"},
|
218 |
{"id": "gemini-1.5-flash-8b-exp-0924"},
|
219 |
{"id": "gemini-1.5-flash-latest"},
|
@@ -231,7 +232,7 @@ GEMINI_MODELS = [
|
|
231 |
|
232 |
@app.route('/')
|
233 |
def index():
|
234 |
-
main_content = "Moonfanz Reminiproxy v2.3.
|
235 |
html_template = """
|
236 |
<!DOCTYPE html>
|
237 |
<html>
|
@@ -597,7 +598,7 @@ if __name__ == '__main__':
|
|
597 |
|
598 |
scheduler.add_job(keep_alive, 'interval', hours=12)
|
599 |
scheduler.start()
|
600 |
-
logger.info(f"Reminiproxy v2.3.
|
601 |
logger.info(f"最大尝试次数/MaxRetries: {MAX_RETRIES}")
|
602 |
logger.info(f"最大请求次数/MaxRequests: {MAX_REQUESTS}")
|
603 |
logger.info(f"请求限额窗口/LimitWindow: {LIMIT_WINDOW} 秒")
|
|
|
214 |
logger.info(f"当前 API key: {current_api_key[:11]}...{current_api_key[-3:]}")
|
215 |
|
216 |
GEMINI_MODELS = [
|
217 |
+
{"id": "text-embedding-004"},
|
218 |
{"id": "gemini-1.5-flash-8b-latest"},
|
219 |
{"id": "gemini-1.5-flash-8b-exp-0924"},
|
220 |
{"id": "gemini-1.5-flash-latest"},
|
|
|
232 |
|
233 |
@app.route('/')
|
234 |
def index():
|
235 |
+
main_content = "Moonfanz Reminiproxy v2.3.2 2025-01-12"
|
236 |
html_template = """
|
237 |
<!DOCTYPE html>
|
238 |
<html>
|
|
|
598 |
|
599 |
scheduler.add_job(keep_alive, 'interval', hours=12)
|
600 |
scheduler.start()
|
601 |
+
logger.info(f"Reminiproxy v2.3.2 启动")
|
602 |
logger.info(f"最大尝试次数/MaxRetries: {MAX_RETRIES}")
|
603 |
logger.info(f"最大请求次数/MaxRequests: {MAX_REQUESTS}")
|
604 |
logger.info(f"请求限额窗口/LimitWindow: {LIMIT_WINDOW} 秒")
|