From dad786f8a0778d4e589af6a08e6bfbf245b88855 Mon Sep 17 00:00:00 2001 From: "a.gorlanov" Date: Fri, 29 Nov 2024 23:09:06 +0400 Subject: [PATCH 1/2] add OPENAI_BASE_URL --- docker-compose.common.yml | 1 + docs/deployment/configuration.mdx | 1 + 2 files changed, 2 insertions(+) diff --git a/docker-compose.common.yml b/docker-compose.common.yml index 39092867f..af36abafb 100644 --- a/docker-compose.common.yml +++ b/docker-compose.common.yml @@ -23,6 +23,7 @@ services: - SECRET_MANAGER_DIRECTORY=/state - DATABASE_CONNECTION_STRING=sqlite:////state/db.sqlite3?check_same_thread=False - OPENAI_API_KEY=$OPENAI_API_KEY + - OPENAI_BASE_URL=$OPENAI_BASE_URL - PUSHER_APP_ID=1 - PUSHER_APP_KEY=keepappkey - PUSHER_APP_SECRET=keepappsecret diff --git a/docs/deployment/configuration.mdx b/docs/deployment/configuration.mdx index ddf404912..dba80b4c6 100644 --- a/docs/deployment/configuration.mdx +++ b/docs/deployment/configuration.mdx @@ -135,6 +135,7 @@ OpenAPI configuration is used for integrating with OpenAI services. These settin | Env var | Purpose | Required | Default Value | Valid options | |:-------------------:|:-------:|:----------:|:-------------:|:-------------:| | **OPENAI_API_KEY** | API key for OpenAI services | No | None | Valid OpenAI API key | +| **OPENAI_BASE_URL** | URL for OpenAI API. It's need for use yourself LOCAL LLM instead OpenAi LLM. | No | None | Valid OpenAI API url | ### Posthog From deb0cf4574af89647ee4bc128af955186c12b40f Mon Sep 17 00:00:00 2001 From: Matvey Kukuy Date: Tue, 3 Dec 2024 22:48:36 +0200 Subject: [PATCH 2/2] Update docs/deployment/configuration.mdx Signed-off-by: Matvey Kukuy --- docs/deployment/configuration.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/deployment/configuration.mdx b/docs/deployment/configuration.mdx index dba80b4c6..cc5b50aab 100644 --- a/docs/deployment/configuration.mdx +++ b/docs/deployment/configuration.mdx @@ -135,7 +135,7 @@ OpenAPI configuration is used for integrating with OpenAI services. These settin | Env var | Purpose | Required | Default Value | Valid options | |:-------------------:|:-------:|:----------:|:-------------:|:-------------:| | **OPENAI_API_KEY** | API key for OpenAI services | No | None | Valid OpenAI API key | -| **OPENAI_BASE_URL** | URL for OpenAI API. It's need for use yourself LOCAL LLM instead OpenAi LLM. | No | None | Valid OpenAI API url | +| **OPENAI_BASE_URL** | URL for OpenAI API. It's need for use yourself LOCAL LLM instead OpenAi LLM. | No | https://api.openai.com/v1 | Valid OpenAI API url | ### Posthog