Skip to content

setting base-url does not work #555

Description

Describe the bug

  1. setting base_url via cli does not work.
    2)when set via env variables, it is correctly set in config but the chanes are not reflected hackagent examples ollama
    this may be reflected in other attacks

To Reproduce
Steps to reproduce the behavior 1)

  1. hackagent config set --base-url http://localhost:8000
  2. hackagent config show --> changes not applied

Steps to reproduce the behavior 1)

  1. clone hackaget-api and run docker compose -f .\docker-compose.yml --env-file .env --env-file .env.secrets up --build
  2. force via env var HACKAGENT_BASE_URL='http://localhost:8000' hackagent
  3. go to C:\Users\mcocca\projects\HackAgentRoot\hackagent\hackagent\router\router.py and log self.backend = backend
  4. run hackagent\hackagent\examples\ollama\hack.py . You see that base_url is not sed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions