mirror of
https://github.com/aljazceru/enclava.git
synced 2025-12-17 15:34:36 +01:00
migration of chatbot api to openai compatibility
This commit is contained in:
@@ -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],
|
||||
|
||||
Reference in New Issue
Block a user