Skip to content

feat: add configurable API transport format#100

Closed
ferstar wants to merge 2 commits intobubbuild:mainfrom
ferstar:main
Closed

feat: add configurable API transport format#100
ferstar wants to merge 2 commits intobubbuild:mainfrom
ferstar:main

Conversation

@ferstar
Copy link

@ferstar ferstar commented Mar 9, 2026

Summary

  • add BUB_API_FORMAT to runtime settings
  • pass the configured transport format through to republic.LLM
  • document the new env var in env.example
  • add a small settings test for env parsing

Verification

  • uv run pytest -q tests/test_builtin_settings.py

@ferstar
Copy link
Author

ferstar commented Mar 9, 2026

This is also meant to be a cleaner alternative to #67. Instead of introducing a use_responses boolean that hard-codes one transport decision into app config, this keeps the setting aligned with Republics actual api_format surface (completion | responses | messages), which is easier to extend and avoids baking a shim-specific compatibility flag into Bub.

@ferstar ferstar closed this Mar 9, 2026
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.

1 participant