Update environment variables, Docker configuration, and dependencies; refactor token management and chat agent logic. Added FastAPI server setup and improved message handling in GigaChat client.
This commit is contained in:
@@ -40,13 +40,13 @@ COPY models/ ./models/
|
||||
COPY services/ ./services/
|
||||
COPY prompts/ ./prompts/
|
||||
COPY scripts/ ./scripts/
|
||||
COPY app.py ./
|
||||
|
||||
# Установка переменных окружения
|
||||
ENV PYTHONUNBUFFERED=1 \
|
||||
PYTHONDONTWRITEBYTECODE=1 \
|
||||
PYTHONPATH=/app
|
||||
|
||||
# По умолчанию запускаем Python REPL для интерактивного использования
|
||||
# В production это будет использоваться как библиотека, импортируемая в backend
|
||||
CMD ["python"]
|
||||
# Запуск FastAPI сервера
|
||||
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user