mirror of
https://github.com/pacnpal/Roo-Code.git
synced 2025-12-22 05:11:06 -05:00
Add 'Include stream options' checkbox for OpenAI-compatible providers
This commit is contained in:
@@ -45,7 +45,7 @@ export class OpenAiHandler implements ApiHandler {
|
||||
stream: true,
|
||||
}
|
||||
|
||||
if (this.options.includeStreamOptions) {
|
||||
if (this.options.includeStreamOptions ?? true) {
|
||||
requestOptions.stream_options = { include_usage: true }
|
||||
}
|
||||
|
||||
|
||||
@@ -35,6 +35,7 @@ export interface ApiHandlerOptions {
|
||||
azureApiVersion?: string
|
||||
openRouterUseMiddleOutTransform?: boolean
|
||||
includeStreamOptions?: boolean
|
||||
setAzureApiVersion?: boolean
|
||||
}
|
||||
|
||||
export type ApiConfiguration = ApiHandlerOptions & {
|
||||
|
||||
Reference in New Issue
Block a user