OneBot: Leantime 改造版源码(BOM/Univer 表格/AI 接管/品牌替换等)
This commit is contained in:
18
app/Domain/Ai/routes.php
Normal file
18
app/Domain/Ai/routes.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Route;
|
||||
use Leantime\Domain\Ai\Controllers\ChatApi;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| AI Domain Routes
|
||||
|--------------------------------------------------------------------------
|
||||
| 界面内 AI 聊天面板 JSON API。
|
||||
| POST /ai/chat —— 发送消息,后端代理 DeepSeek/千问 + 执行工具调用
|
||||
| GET /ai/config —— 读取当前 AI 配置(脱敏)
|
||||
*/
|
||||
|
||||
Route::prefix('ai')->group(function () {
|
||||
Route::post('/chat', [ChatApi::class, 'chat']);
|
||||
Route::get('/config', [ChatApi::class, 'config']);
|
||||
});
|
||||
Reference in New Issue
Block a user