8e
commited on
Commit
·
dad78f4
1
Parent(s):
c4f87f9
修改uri
Browse files- app/routes.py +1 -1
app/routes.py
CHANGED
@@ -59,7 +59,7 @@ def get_channel_id(hash_value, token, model_name, content, template_id):
|
|
59 |
def fetch(req):
|
60 |
if req.method == "OPTIONS":
|
61 |
return handle_options_request()
|
62 |
-
token =
|
63 |
messages, model_name, prompt, user_stream = get_request_parameters(req.get_json())
|
64 |
model_to_use = map_model_name(model_name)
|
65 |
template_id = 2000000 if model_name in IMAGE_MODEL_NAMES else ''
|
|
|
59 |
def fetch(req):
|
60 |
if req.method == "OPTIONS":
|
61 |
return handle_options_request()
|
62 |
+
token = req.headers.get("Authorization").replace("Bearer ", "")
|
63 |
messages, model_name, prompt, user_stream = get_request_parameters(req.get_json())
|
64 |
model_to_use = map_model_name(model_name)
|
65 |
template_id = 2000000 if model_name in IMAGE_MODEL_NAMES else ''
|