Upload beautify
This commit is contained in:
34
config/vision.php
Normal file
34
config/vision.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
return [
|
||||
'enabled' => env('VISION_ENABLED', true),
|
||||
|
||||
'queue' => env('VISION_QUEUE', 'default'),
|
||||
|
||||
'clip' => [
|
||||
'base_url' => env('CLIP_BASE_URL', ''),
|
||||
'endpoint' => env('CLIP_ANALYZE_ENDPOINT', '/analyze'),
|
||||
'timeout_seconds' => (int) env('CLIP_TIMEOUT_SECONDS', 8),
|
||||
'connect_timeout_seconds' => (int) env('CLIP_CONNECT_TIMEOUT_SECONDS', 2),
|
||||
'retries' => (int) env('CLIP_HTTP_RETRIES', 1),
|
||||
'retry_delay_ms' => (int) env('CLIP_HTTP_RETRY_DELAY_MS', 200),
|
||||
],
|
||||
|
||||
'yolo' => [
|
||||
'enabled' => env('YOLO_ENABLED', true),
|
||||
'base_url' => env('YOLO_BASE_URL', ''),
|
||||
'endpoint' => env('YOLO_ANALYZE_ENDPOINT', '/analyze'),
|
||||
'timeout_seconds' => (int) env('YOLO_TIMEOUT_SECONDS', 8),
|
||||
'connect_timeout_seconds' => (int) env('YOLO_CONNECT_TIMEOUT_SECONDS', 2),
|
||||
'retries' => (int) env('YOLO_HTTP_RETRIES', 1),
|
||||
'retry_delay_ms' => (int) env('YOLO_HTTP_RETRY_DELAY_MS', 200),
|
||||
|
||||
// Only run YOLO for photography content type.
|
||||
'photography_only' => env('YOLO_PHOTOGRAPHY_ONLY', true),
|
||||
],
|
||||
|
||||
// Which derivative variant to send to vision services.
|
||||
'image_variant' => env('VISION_IMAGE_VARIANT', 'md'),
|
||||
];
|
||||
Reference in New Issue
Block a user