Files
iiEsaywebUI/scripts/find_model_image_api.sh
2026-02-19 18:12:09 +00:00

33 lines
1.3 KiB
Bash
Executable File
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.
#!/bin/bash
# Поиск API endpoint для изображения профиля модели
CONTAINER_NAME="open-webui"
echo "=== Поиск API endpoint /api/v1/models/model/profile/image ==="
echo ""
echo "1. Поиск Python файлов с этим endpoint..."
docker exec "${CONTAINER_NAME}" find /app/backend -type f -name "*.py" \
-exec grep -l "model/profile/image\|profile/image\|models.*profile" {} \; 2>/dev/null
echo ""
echo "2. Поиск в main.py и routes..."
docker exec "${CONTAINER_NAME}" find /app/backend -type f -name "*.py" \
\( -name "*main.py" -o -name "*route*.py" -o -name "*api*.py" -o -name "*model*.py" \) \
-exec grep -l "profile.*image\|image.*profile" {} \; 2>/dev/null
echo ""
echo "3. Поиск строк с '/api/v1/models'..."
docker exec "${CONTAINER_NAME}" find /app/backend -type f -name "*.py" \
-exec grep -l "/api/v1/models\|api/v1/models" {} \; 2>/dev/null | head -10
echo ""
echo "4. Поиск в шаблонах HTML/Svelte с этим API..."
docker exec "${CONTAINER_NAME}" find /app/web -type f \
\( -name "*.html" -o -name "*.svelte" -o -name "*.js" -o -name "*.ts" \) \
! -path "*/node_modules/*" \
-exec grep -l "model/profile/image\|models.*profile.*image" {} \; 2>/dev/null | head -10
echo ""
echo "=== Поиск завершен ==="