-
Notifications
You must be signed in to change notification settings - Fork 15.9k
补全status界面里的信息 #189
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
补全status界面里的信息 #189
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
def3617
docs: update contributors
2228293026 269b794
Merge branch 'claude-code-best:main' into main
2228293026 35d5207
Merge branch 'claude-code-best:main' into main
2228293026 4a18d0d
docs: update contributors
2228293026 1dccbd9
Merge branch 'claude-code-best:main' into main
2228293026 2771eee
docs: update contributors
2228293026 629371a
Merge branch 'claude-code-best:main' into main
2228293026 e01680c
Merge branch 'claude-code-best:main' into main
2228293026 b4a7cc2
Merge branch 'claude-code-best:main' into main
2228293026 d0b54de
docs: update contributors
2228293026 0d63f98
Merge branch 'claude-code-best:main' into main
2228293026 24dff7a
Merge branch 'claude-code-best:main' into main
2228293026 81792af
添加status命令里更多模型api介绍
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🛠️ Refactor suggestion | 🟠 Major
Inconsistent base URL handling compared to existing patterns.
Two issues with the new provider branches:
Grok (lines 436-440): The Grok client defaults to
https://api.x.ai/v1whenGROK_BASE_URLis unset. The status display should show this default (like Gemini does on line 430) rather thanundefined.OpenAI (lines 442-446): Unlike Grok, OpenAI has no explicit default in the codebase. The property should only be shown when the env var is set (like Bedrock, Vertex, and Foundry patterns).
♻️ Proposed fix for consistent behavior
} else if (apiProvider === 'grok') { - const grokBaseUrl = process.env.GROK_BASE_URL + const grokBaseUrl = process.env.GROK_BASE_URL || 'https://api.x.ai/v1' properties.push({ label: 'Grok base URL', value: grokBaseUrl, }) } else if (apiProvider === 'openai') { const openaiBaseUrl = process.env.OPENAI_BASE_URL - properties.push({ - label: 'OpenAI base URL', - value: openaiBaseUrl, - }) + if (openaiBaseUrl) { + properties.push({ + label: 'OpenAI base URL', + value: openaiBaseUrl, + }) + } }🤖 Prompt for AI Agents