Files
crm.clientright.ru/test_vision.sh

24 lines
605 B
Bash
Raw Permalink Normal View History

#!/bin/bash
# Тест Gemini Vision API
echo "Testing Gemini Vision через OpenRouter..."
curl -X POST "https://openrouter.ai/api/v1/chat/completions" \
-H "Authorization: Bearer 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" \
-H "HTTP-Referer: http://147.45.146.17:8100" \
-H "Content-Type: application/json" \
-d '{
"model": "google/gemini-2.0-flash-001",
"messages": [{
"role": "user",
"content": "Проверка работы. Ответь: OK"
}],
"temperature": 0.1,
"max_tokens": 50
}'
echo ""
echo "Test complete!"