From a8d20247918de324972c54408fb2669bf65ee1ef Mon Sep 17 00:00:00 2001 From: Marco Ponce Date: Sun, 12 Oct 2025 08:25:42 -0400 Subject: [PATCH] Windows deployment powershell and renamed LLM_PROVIDER and runtime (#2050) * Windows deployment powershell and renamed LLM_PROVIDER and runtime * added LLM_NAME back * revert changes on docker-compose-hub.yaml --- deployment/docker-compose-hub.yaml | 2 +- setup.ps1 | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/deployment/docker-compose-hub.yaml b/deployment/docker-compose-hub.yaml index fe6a6bcb..b54aa7b7 100644 --- a/deployment/docker-compose-hub.yaml +++ b/deployment/docker-compose-hub.yaml @@ -72,4 +72,4 @@ services: - mongodb_data_container:/data/db volumes: - mongodb_data_container: + mongodb_data_container: \ No newline at end of file diff --git a/setup.ps1 b/setup.ps1 index d675536e..1ed3a821 100644 --- a/setup.ps1 +++ b/setup.ps1 @@ -292,7 +292,7 @@ function Use-DocsPublicAPIEndpoint { Write-ColorText "Setting up DocsGPT Public API Endpoint..." -ForegroundColor "White" # Create .env file - "LLM_NAME=docsgpt" | Out-File -FilePath $ENV_FILE -Encoding utf8 -Force + "LLM_PROVIDER=docsgpt" | Out-File -FilePath $ENV_FILE -Encoding utf8 -Force "VITE_API_STREAMING=true" | Add-Content -Path $ENV_FILE -Encoding utf8 Write-ColorText ".env file configured for DocsGPT Public API." -ForegroundColor "Green" @@ -397,7 +397,7 @@ function Serve-LocalOllama { # Create .env file "API_KEY=xxxx" | Out-File -FilePath $ENV_FILE -Encoding utf8 -Force - "LLM_NAME=openai" | Add-Content -Path $ENV_FILE -Encoding utf8 + "LLM_PROVIDER=openai" | Add-Content -Path $ENV_FILE -Encoding utf8 "MODEL_NAME=$model_name" | Add-Content -Path $ENV_FILE -Encoding utf8 "VITE_API_STREAMING=true" | Add-Content -Path $ENV_FILE -Encoding utf8 "OPENAI_BASE_URL=http://host.docker.internal:11434/v1" | Add-Content -Path $ENV_FILE -Encoding utf8 @@ -560,7 +560,7 @@ function Connect-LocalInferenceEngine { # Create .env file "API_KEY=None" | Out-File -FilePath $ENV_FILE -Encoding utf8 -Force - "LLM_NAME=openai" | Add-Content -Path $ENV_FILE -Encoding utf8 + "LLM_PROVIDER=openai" | Add-Content -Path $ENV_FILE -Encoding utf8 "MODEL_NAME=$model_name" | Add-Content -Path $ENV_FILE -Encoding utf8 "VITE_API_STREAMING=true" | Add-Content -Path $ENV_FILE -Encoding utf8 "OPENAI_BASE_URL=$openai_base_url" | Add-Content -Path $ENV_FILE -Encoding utf8 @@ -693,7 +693,7 @@ function Connect-CloudAPIProvider { # Create .env file "API_KEY=$api_key" | Out-File -FilePath $ENV_FILE -Encoding utf8 -Force - "LLM_NAME=$llm_name" | Add-Content -Path $ENV_FILE -Encoding utf8 + "LLM_PROVIDER=$llm_name" | Add-Content -Path $ENV_FILE -Encoding utf8 "MODEL_NAME=$model_name" | Add-Content -Path $ENV_FILE -Encoding utf8 "VITE_API_STREAMING=true" | Add-Content -Path $ENV_FILE -Encoding utf8