Skip to content

.env中的AGENT_HOST_URL与APP_API_KEY真的是可选的? #5

Description

@pollanyan

不配置这两个参数时,执行如下程序:
uvicorn openbb_app.main:app --host 0.0.0.0 --port 8001 --reloa
提示:
pydantic_core._pydantic_core.ValidationError: 2 validation errors for AppConfig
agent_host_url
Value error, agent_host_url environment variable is required. [type=value_error, input_value='', input_type=str]
For further information visit https://errors.pydantic.dev/2.13/v/value_error
app_api_key
Value error, app_api_key environment variable is required. [type=value_error, input_value='', input_type=str]
For further information visit https://errors.pydantic.dev/2.13/v/value_error

想配置,又不知道配置成什么,保持原值,健康检查又过不去
❯ curl http://localhost:8001/api/v1/health
{"status":"degraded","service":"openbb-app-builder-agent","dependencies":{"code_generator":{"type":"claude","available":true,"message":"Claude Code CLI found at: /home/yanbaoliang/.local/bin/claude"},"target_repo":{"available":false,"message":"Target repo not configured (set OPENBB_APP_BUILDER_TARGET_REPO_PATH)"}}}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions