Add project and deployment instruction (docs/DEPLOYMENT.md)

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
ars
2026-02-19 18:12:09 +00:00
commit 53c572ef46
94 changed files with 9200 additions and 0 deletions

32
scripts/find_model_image_api.sh Executable file
View File

@@ -0,0 +1,32 @@
#!/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 "=== Поиск завершен ==="