This commit is contained in:
Your Name
2026-10-27 14:03:35 +08:00
parent 7986e4baf5
commit f9cbd42113
417 changed files with 71876 additions and 5344 deletions
+2 -1
View File
@@ -59,6 +59,7 @@ namespace app\common\service {
namespace {
require dirname(__DIR__) . '/app/common/service/DifyRequiredAttachmentUpload.php';
require_once dirname(__DIR__) . '/app/common/service/DifyReasoningTextFilter.php';
require dirname(__DIR__) . '/app/common/service/DifyChatService.php';
use app\common\service\DifyChatService;
use app\common\service\DifyRequiredAttachmentUpload;
@@ -75,7 +76,7 @@ namespace {
$source = $public . '/uploads/synthetic.png';
file_put_contents($source, base64_decode('iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8/x8AAwMCAO+jRZkAAAAASUVORK5CYII='));
$files = [['type' => 'image', 'url' => 'https://app.synthetic.test/uploads/synthetic.png']];
$uploadOptions = ['public_root' => $public, 'temp_root' => $temporary,
$uploadOptions = ['public_root' => $public, 'temp_root' => $temporary, 'reuse_uploaded_files' => false,
'local_origin' => 'https://app.synthetic.test',
'ocr' => ['enabled' => true, 'timeout_seconds' => 60]];
$ocrBudgetConfig = ['enable' => true, 'base_url' => 'https://model.synthetic.test/v1/chat-messages',