修复
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user