Codex/pr 5 OpenAI custom endpoint#6
Merged
Conversation
This commit adds support for custom OpenAI-compatible endpoints, allowing users to use providers like OpenCode Zen, Azure OpenAI, or self-hosted models with Memory Bank. Changes: - Add DEFAULT_OPENAI_URL constant in memory-bank-app - Add openai_url field to ServerSettings struct - Add base_url field to LlmProviderConfig::OpenAi variant - Support OPENAI_BASE_URL environment variable - Update OpenAI client builder to use custom base_url when provided - Update tests to include base_url field - Add documentation to README.md Example usage: export OPENAI_BASE_URL=https://opencode.ai/zen/v1 export OPENAI_API_KEY=your-key mb service restart Closes: feelingsonice/MemoryBank#<issue_number>
Rust pattern matching requires all struct fields to be mentioned or explicitly ignored with '..' or '_'. Added '..' to ignore api_key in the OpenAi variant pattern.
Owner
Author
|
@anaxsouza you can now set a custom endpoint via
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

No description provided.