fix langfuse env name
This commit is contained in:
parent
f3e1ca673a
commit
77a518b77d
4 changed files with 15 additions and 9 deletions
|
|
@ -75,3 +75,10 @@ LANGFLOW_SUPERUSER=
|
||||||
LANGFLOW_SUPERUSER_PASSWORD=
|
LANGFLOW_SUPERUSER_PASSWORD=
|
||||||
LANGFLOW_NEW_USER_IS_ACTIVE=False
|
LANGFLOW_NEW_USER_IS_ACTIVE=False
|
||||||
LANGFLOW_ENABLE_SUPERUSER_CLI=False
|
LANGFLOW_ENABLE_SUPERUSER_CLI=False
|
||||||
|
|
||||||
|
# Langfuse tracing (optional)
|
||||||
|
# Get keys from https://cloud.langfuse.com or your self-hosted instance
|
||||||
|
LANGFUSE_SECRET_KEY=
|
||||||
|
LANGFUSE_PUBLIC_KEY=
|
||||||
|
# Leave empty for Langfuse Cloud, or set for self-hosted (e.g., http://localhost:3002)
|
||||||
|
LANGFUSE_HOST=
|
||||||
|
|
|
||||||
|
|
@ -110,10 +110,9 @@ services:
|
||||||
ports:
|
ports:
|
||||||
- "7860:7860"
|
- "7860:7860"
|
||||||
environment:
|
environment:
|
||||||
- LANGFLOW_DEACTIVATE_TRACING=true
|
|
||||||
- LANGFUSE_SECRET_KEY=${LANGFUSE_SECRET_KEY:-}
|
- LANGFUSE_SECRET_KEY=${LANGFUSE_SECRET_KEY:-}
|
||||||
- LANGFUSE_PUBLIC_KEY=${LANGFUSE_PUBLIC_KEY:-}
|
- LANGFUSE_PUBLIC_KEY=${LANGFUSE_PUBLIC_KEY:-}
|
||||||
- LANGFUSE_BASE_URL=${LANGFUSE_BASE_URL:-}
|
- LANGFUSE_HOST=${LANGFUSE_HOST:-}
|
||||||
- OPENAI_API_KEY=${OPENAI_API_KEY:-None}
|
- OPENAI_API_KEY=${OPENAI_API_KEY:-None}
|
||||||
- ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY:-None}
|
- ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY:-None}
|
||||||
- WATSONX_API_KEY=${WATSONX_API_KEY:-None}
|
- WATSONX_API_KEY=${WATSONX_API_KEY:-None}
|
||||||
|
|
|
||||||
|
|
@ -58,7 +58,7 @@ class EnvConfig:
|
||||||
# Langfuse settings (optional)
|
# Langfuse settings (optional)
|
||||||
langfuse_secret_key: str = ""
|
langfuse_secret_key: str = ""
|
||||||
langfuse_public_key: str = ""
|
langfuse_public_key: str = ""
|
||||||
langfuse_base_url: str = ""
|
langfuse_host: str = ""
|
||||||
|
|
||||||
# Langflow auth settings
|
# Langflow auth settings
|
||||||
langflow_auto_login: str = "False"
|
langflow_auto_login: str = "False"
|
||||||
|
|
@ -197,7 +197,7 @@ class EnvManager:
|
||||||
"OPENRAG_VERSION": "openrag_version",
|
"OPENRAG_VERSION": "openrag_version",
|
||||||
"LANGFUSE_SECRET_KEY": "langfuse_secret_key", # pragma: allowlist secret
|
"LANGFUSE_SECRET_KEY": "langfuse_secret_key", # pragma: allowlist secret
|
||||||
"LANGFUSE_PUBLIC_KEY": "langfuse_public_key", # pragma: allowlist secret
|
"LANGFUSE_PUBLIC_KEY": "langfuse_public_key", # pragma: allowlist secret
|
||||||
"LANGFUSE_BASE_URL": "langfuse_base_url",
|
"LANGFUSE_HOST": "langfuse_host",
|
||||||
}
|
}
|
||||||
|
|
||||||
loaded_from_file = False
|
loaded_from_file = False
|
||||||
|
|
@ -515,7 +515,7 @@ class EnvManager:
|
||||||
langfuse_vars = [
|
langfuse_vars = [
|
||||||
("LANGFUSE_SECRET_KEY", self.config.langfuse_secret_key),
|
("LANGFUSE_SECRET_KEY", self.config.langfuse_secret_key),
|
||||||
("LANGFUSE_PUBLIC_KEY", self.config.langfuse_public_key),
|
("LANGFUSE_PUBLIC_KEY", self.config.langfuse_public_key),
|
||||||
("LANGFUSE_BASE_URL", self.config.langfuse_base_url),
|
("LANGFUSE_HOST", self.config.langfuse_host),
|
||||||
]
|
]
|
||||||
|
|
||||||
langfuse_written = False
|
langfuse_written = False
|
||||||
|
|
|
||||||
|
|
@ -552,19 +552,19 @@ class ConfigScreen(Screen):
|
||||||
yield Static(" ")
|
yield Static(" ")
|
||||||
|
|
||||||
# Langfuse Base URL
|
# Langfuse Base URL
|
||||||
yield Label("Langfuse Base URL (optional)")
|
yield Label("Langfuse Host (optional)")
|
||||||
yield Static(
|
yield Static(
|
||||||
Text("Leave empty for Langfuse Cloud, or set for self-hosted", style="dim"),
|
Text("Leave empty for Langfuse Cloud, or set for self-hosted", style="dim"),
|
||||||
classes="helper-text",
|
classes="helper-text",
|
||||||
)
|
)
|
||||||
current_value = getattr(self.env_manager.config, "langfuse_base_url", "")
|
current_value = getattr(self.env_manager.config, "langfuse_host", "")
|
||||||
input_widget = Input(
|
input_widget = Input(
|
||||||
placeholder="https://cloud.langfuse.com",
|
placeholder="https://cloud.langfuse.com",
|
||||||
value=current_value,
|
value=current_value,
|
||||||
id="input-langfuse_base_url",
|
id="input-langfuse_host",
|
||||||
)
|
)
|
||||||
yield input_widget
|
yield input_widget
|
||||||
self.inputs["langfuse_base_url"] = input_widget
|
self.inputs["langfuse_host"] = input_widget
|
||||||
yield Static(" ")
|
yield Static(" ")
|
||||||
|
|
||||||
# Other Settings Section
|
# Other Settings Section
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue