From 913c0bf2809dd07d843b2d9eef186b409f48fec6 Mon Sep 17 00:00:00 2001 From: sauravniraula Date: Wed, 30 Jul 2025 23:35:29 +0545 Subject: [PATCH 1/2] fix(fastapi): sets custom url correctly --- servers/fastapi/utils/set_env.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/servers/fastapi/utils/set_env.py b/servers/fastapi/utils/set_env.py index fbfaf221..836c8caa 100644 --- a/servers/fastapi/utils/set_env.py +++ b/servers/fastapi/utils/set_env.py @@ -18,7 +18,7 @@ def set_ollama_url_env(value): def set_custom_llm_url_env(value): - os.environ["CUSTOM_URL"] = value + os.environ["CUSTOM_LLM_URL"] = value def set_openai_api_key_env(value): @@ -44,9 +44,10 @@ def set_custom_model_env(value): def set_pexels_api_key_env(value): os.environ["PEXELS_API_KEY"] = value + def set_image_provider_env(value): os.environ["IMAGE_PROVIDER"] = value def set_pixabay_api_key_env(value): - os.environ["PIXABAY_API_KEY"] = value \ No newline at end of file + os.environ["PIXABAY_API_KEY"] = value From bcc3fbf09929e775f64d646867ac2218c1c7f286 Mon Sep 17 00:00:00 2001 From: shiva raj badu Date: Thu, 31 Jul 2025 01:48:07 +0545 Subject: [PATCH 2/2] chore(docker files): Change node version to 20 --- Dockerfile | 8 ++++++-- Dockerfile.dev | 8 ++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6a740c3c..cc303b52 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,12 +2,16 @@ FROM python:3.11-slim-bookworm # Install Node.js and npm RUN apt-get update && apt-get install -y \ - nodejs \ - npm \ + nginx \ curl \ redis-server + # Install Node.js 20 using NodeSource repository +RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \ + apt-get install -y nodejs + + # Create a working directory WORKDIR /app diff --git a/Dockerfile.dev b/Dockerfile.dev index 326057af..3c84ac4b 100644 --- a/Dockerfile.dev +++ b/Dockerfile.dev @@ -2,12 +2,16 @@ FROM python:3.11-slim-bookworm # Install Node.js and npm RUN apt-get update && apt-get install -y \ - nodejs \ - npm \ nginx \ curl \ redis-server + + # Install Node.js 20 using NodeSource repository +RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \ + apt-get install -y nodejs + + # Change working directory WORKDIR /app