Skip to content

feat: add OMP agent config download button - #70

Merged
sjug merged 6 commits into
quadsproject:mainfrom
sadsfae:ompconfig
Aug 6, 2026
Merged

feat: add OMP agent config download button#70
sjug merged 6 commits into
quadsproject:mainfrom
sadsfae:ompconfig

Conversation

@sadsfae

@sadsfae sadsfae commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Add downloadable OMP models.yaml configuration file to the dashboard and node detail pages alongside existing OpenCode CLI and Pi agent configs.

Changes:

  • Added generateOmpConfig function producing YAML matching OMP models.yaml schema
  • Updated downloadConfigFile to handle string (YAML) content with proper MIME type
  • Added "OMP Agent" (filename models.yaml) to config download dropdown

Generated YAML format:

providers:
  qiip:
    baseUrl: http://proxy.example.com:8080/v1
    apiKey: none
    api: openai-completions
    models:
      - id: meta-llama/Llama-3-8B

fixes: #69

Add downloadable OMP models.yaml configuration file to the dashboard
and node detail pages alongside existing OpenCode CLI and Pi agent
configs. The YAML format points at the QIIP proxy (dashboard) or
individual vLLM endpoints (node detail) for OpenAI-compatible access.

fixes: quadsproject#69

@sjug sjug left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, nice and consistent with how the Pi config was added. I checked the generated YAML against the oh-my-pi docs (https://github.com/can1357/oh-my-pi/blob/main/docs/models.md) and the schema and models.yaml filename both check out. A handful of small comments inline; the only one I would really like resolved before merge is the accidentally dropped assertion in the Pi test.

Comment thread tests/frontend/test_config_download.py
Comment thread inference_proxy/static/js/config_download.js Outdated
Comment thread inference_proxy/static/js/config_download.js
Comment thread inference_proxy/static/js/config_download.js Outdated
Comment thread inference_proxy/static/js/config_download.js Outdated
Comment thread tests/frontend/test_config_download.py
Comment thread tests/frontend/test_config_download.py Outdated
- Use auth: none instead of apiKey: none per OMP docs
- Add compat block matching Pi config for llama.cpp backend
- Add yamlScalar helper to quote values with special chars
- Use application/yaml MIME type (RFC 9512)
- Restore dropped assertion in Pi trailing-slash test
- Deduplicate _run_node/_run_node_yaml into shared helper
- Remove redundant assertion in OMP trailing-slash test
- Add test for YAML special character quoting
sadsfae and others added 4 commits August 6, 2026 02:13
OMP auto-detects supportsDeveloperRole (false for non-OpenAI hosts)
and supportsReasoningEffort (true, which is correct since qiip passes
reasoning_effort through and llama.cpp b10242 handles it).
@sjug
sjug merged commit 7f8b1fe into quadsproject:main Aug 6, 2026
3 checks passed
@sadsfae
sadsfae deleted the ompconfig branch August 6, 2026 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[RFE] Add omp (Oh My Pi) Agent Config Downloads

2 participants