Skip to content

feat: Add support for custom provider endpoints and headers#19

Open
wubin1989 wants to merge 1 commit intomainfrom
upstream-open-pr-245
Open

feat: Add support for custom provider endpoints and headers#19
wubin1989 wants to merge 1 commit intomainfrom
upstream-open-pr-245

Conversation

@wubin1989
Copy link
Copy Markdown
Owner

Migrated open PR from upstream for local review.

Upstream: opencode-ai#245
Upstream head: tarcisiojr:main @ bb991ae

This commit introduces several enhancements for configuration flexibility and usability.

Users can now specify a custom `baseURL` and `headers` for API providers (e.g., OpenAI, Gemini, Groq). This enables routing requests through proxies, corporate gateways, or connecting to self-hosted, API-compatible services.

Additionally, two new command-line flags have been added:
- `--config`: Allows specifying a path to a custom JSON configuration file, overriding the default search behavior.
- `--prompt-file`: Enables loading a prompt from a markdown file, making it easier to run complex, multi-line prompts in non-interactive mode.

The README has been updated to document these new features.
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.

2 participants