migration of chatbot api to openai compatibility

This commit is contained in:
2025-08-26 09:11:22 +02:00
parent c07ed1744f
commit 10cdf06ae1
12 changed files with 495 additions and 1246 deletions

View File

@@ -299,7 +299,8 @@ class APIKey(Base):
rate_limit_per_day=144000,
allowed_models=[], # Will use chatbot's configured model
allowed_endpoints=[
f"/api/v1/chatbot/external/{chatbot_id}/chat"
f"/api/v1/chatbot/external/{chatbot_id}/chat",
f"/api/v1/chatbot/external/{chatbot_id}/chat/completions"
],
allowed_ips=[],
allowed_chatbots=[chatbot_id],