yym68686 commited on
Commit
d37cc67
·
1 Parent(s): 7158ded

🐛 Bug: Fix the bug in the Claude API URL determination algorithm.

Browse files
Files changed (1) hide show
  1. main.py +1 -1
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/message"):
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"