mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-08 06:46:02 +00:00
feat: crud of platform/bots
This commit is contained in:
@@ -18,9 +18,11 @@ class LLMModelsRouterGroup(group.RouterGroup):
|
||||
elif quart.request.method == 'POST':
|
||||
json_data = await quart.request.json
|
||||
|
||||
await self.ap.model_service.create_llm_model(json_data)
|
||||
model_uuid = await self.ap.model_service.create_llm_model(json_data)
|
||||
|
||||
return self.success()
|
||||
return self.success(data={
|
||||
'uuid': model_uuid
|
||||
})
|
||||
|
||||
@self.route('/<model_uuid>', methods=['GET', 'DELETE'])
|
||||
async def _(model_uuid: str) -> str:
|
||||
|
||||
Reference in New Issue
Block a user