🐛 Bug: Fix the bug in the Claude API URL determination algorithm.
Browse files
main.py
CHANGED
@@ -85,7 +85,7 @@ async def process_request(request: RequestModel, provider: Dict):
|
|
85 |
engine = None
|
86 |
if parsed_url.netloc == 'generativelanguage.googleapis.com':
|
87 |
engine = "gemini"
|
88 |
-
elif parsed_url.netloc == 'api.anthropic.com' or parsed_url.path.endswith("v1/
|
89 |
engine = "claude"
|
90 |
elif parsed_url.netloc == 'openrouter.ai':
|
91 |
engine = "openrouter"
|
|
|
85 |
engine = None
|
86 |
if parsed_url.netloc == 'generativelanguage.googleapis.com':
|
87 |
engine = "gemini"
|
88 |
+
elif parsed_url.netloc == 'api.anthropic.com' or parsed_url.path.endswith("v1/messages"):
|
89 |
engine = "claude"
|
90 |
elif parsed_url.netloc == 'openrouter.ai':
|
91 |
engine = "openrouter"
|