Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -7,7 +7,7 @@ from flask import Flask, request, Response, stream_with_context, jsonify
|
|
| 7 |
app = Flask(__name__)
|
| 8 |
|
| 9 |
# Config from Hugging Face Secrets
|
| 10 |
-
ONYX_API_KEY = os.getenv("
|
| 11 |
ONYX_URL = "https://cloud.onyx.app/api/chat/send-chat-message"
|
| 12 |
|
| 13 |
def transform_to_openai_chunk(content, model_name, finish_reason=None):
|
|
|
|
| 7 |
app = Flask(__name__)
|
| 8 |
|
| 9 |
# Config from Hugging Face Secrets
|
| 10 |
+
ONYX_API_KEY = os.getenv("ONYX_SECRET")
|
| 11 |
ONYX_URL = "https://cloud.onyx.app/api/chat/send-chat-message"
|
| 12 |
|
| 13 |
def transform_to_openai_chunk(content, model_name, finish_reason=None):
|