mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-19 09:33:53 +00:00
feat: add support for includePartialMessages option in query and transport layers
This commit is contained in:
@@ -43,6 +43,7 @@ export function query({
|
||||
coreTools: options.coreTools,
|
||||
excludeTools: options.excludeTools,
|
||||
authType: options.authType,
|
||||
includePartialMessages: options.includePartialMessages,
|
||||
});
|
||||
|
||||
const queryOptions: QueryOptions = {
|
||||
|
||||
@@ -155,6 +155,10 @@ export class ProcessTransport implements Transport {
|
||||
args.push('--auth-type', this.options.authType);
|
||||
}
|
||||
|
||||
if (this.options.includePartialMessages) {
|
||||
args.push('--include-partial-messages');
|
||||
}
|
||||
|
||||
return args;
|
||||
}
|
||||
|
||||
|
||||
@@ -76,6 +76,7 @@ export const QueryOptionsSchema = z
|
||||
),
|
||||
)
|
||||
.optional(),
|
||||
includePartialMessages: z.boolean().optional(),
|
||||
})
|
||||
.strict();
|
||||
|
||||
|
||||
@@ -30,6 +30,7 @@ export type TransportOptions = {
|
||||
coreTools?: string[];
|
||||
excludeTools?: string[];
|
||||
authType?: string;
|
||||
includePartialMessages?: boolean;
|
||||
};
|
||||
|
||||
type ToolInput = Record<string, unknown>;
|
||||
|
||||
Reference in New Issue
Block a user