Spaces:
Paused
Paused
Update main.py
Browse files
main.py
CHANGED
|
@@ -19,7 +19,7 @@ logger = logging.getLogger(__name__)
|
|
| 19 |
@dataclass
|
| 20 |
class Config:
|
| 21 |
# SILICONFLOW-Key
|
| 22 |
-
AUTH_TOKEN: str = 'sk-
|
| 23 |
# One-API/New-API 中转地址
|
| 24 |
OPENAI_CHAT_API: str = 'https://xxxxxxxxxxxx/v1/chat/completions'
|
| 25 |
# key
|
|
@@ -487,7 +487,7 @@ async def get_prompt(prompt):
|
|
| 487 |
|
| 488 |
|
| 489 |
app = web.Application()
|
| 490 |
-
app.router.add_post('/v1/chat/completions', handle_request)
|
| 491 |
|
| 492 |
if __name__ == '__main__':
|
| 493 |
web.run_app(app, host='0.0.0.0', port=6666)
|
|
|
|
| 19 |
@dataclass
|
| 20 |
class Config:
|
| 21 |
# SILICONFLOW-Key
|
| 22 |
+
AUTH_TOKEN: str = 'sk-vqfmwdzfgmbpxyqyqjtpnmocljhlzbprrxcmlovlnpniqjqq'
|
| 23 |
# One-API/New-API 中转地址
|
| 24 |
OPENAI_CHAT_API: str = 'https://xxxxxxxxxxxx/v1/chat/completions'
|
| 25 |
# key
|
|
|
|
| 487 |
|
| 488 |
|
| 489 |
app = web.Application()
|
| 490 |
+
app.router.add_post('/hf/v1/chat/completions', handle_request)
|
| 491 |
|
| 492 |
if __name__ == '__main__':
|
| 493 |
web.run_app(app, host='0.0.0.0', port=6666)
|