-
Notifications
You must be signed in to change notification settings - Fork 2.4k
make sure the models are using streaming properly #6331
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
Conversation
| .client | ||
| .post(url) | ||
| .headers(headers) | ||
| .header("Authorization", format!("Bearer {}", token)); |
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.
is this right? we have authorization types for the client, we shouldn't be setting this by hand I would think
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.
Pull request overview
This PR fixes a bug where usage statistics were not being set correctly in response data when using streaming models with the GitHub Copilot provider. The fix standardizes the provider's implementation to match patterns used by other providers.
- Refactored the
postmethod to returnResponseinstead ofValueand useApiClient - Added
streammethod to support proper streaming functionality - Added
supports_streamingmethod to identify models that support streaming
| stream_openai_compat(response, log) | ||
| } | ||
|
|
||
| /// Fetch supported models from GitHub Copliot; returns Err on failure, Ok(None) if not present |
Copilot
AI
Jan 6, 2026
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.
Typo in comment: "Copliot" should be "Copilot".
| /// Fetch supported models from GitHub Copliot; returns Err on failure, Ok(None) if not present | |
| /// Fetch supported models from GitHub Copilot; returns Err on failure, Ok(None) if not present |
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.
Pull request overview
Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.
* 'main' of github.com:block/goose: refactor: when changing provider/model,load existing provider/model (#6334) chore: refactor configure_extensions_dialog to reduce line count (#6277) chore: refactor handle_configure to reduce line count (#6276) chore: refactor interactive session to reduce line count (#6274) chore: refactor docx_tool to reduce function size (#6273) chore: refactor cli() function to reduce line count (#6272) make sure the models are using streaming properly (#6331) feat: add a max tokens env var (#6264) docs: slash commands topic (#6333) fix(ci): prevent gh-pages branch bloat (#6340) chore(deps): bump qs and body-parser in /documentation (#6338) Skip the smoke tests for dependabot PRs (#6337)
Summary
Type of Change
AI Assistance
Testing
Related Issues
Relates to #ISSUE_ID: #5907
Discussion: LINK (if any)