Files
SkinbaseNova/config/vision.php

51 lines
2.0 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?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'),
/*
|--------------------------------------------------------------------------
| LM Studio local multimodal inference (tag generation)
|--------------------------------------------------------------------------
*/
'lm_studio' => [
'base_url' => env('LM_STUDIO_URL', 'http://172.28.16.1:8200'),
'model' => env('LM_STUDIO_MODEL', 'google/gemma-3-4b'),
'timeout' => (int) env('LM_STUDIO_TIMEOUT', 60),
'connect_timeout' => (int) env('LM_STUDIO_CONNECT_TIMEOUT', 5),
'temperature' => (float) env('LM_STUDIO_TEMPERATURE', 0.3),
'max_tokens' => (int) env('LM_STUDIO_MAX_TOKENS', 300),
// Maximum number of AI-suggested tags to keep per artwork.
'max_tags' => (int) env('LM_STUDIO_MAX_TAGS', 12),
],
];