Skip to content

Commit 24c9450

Browse files
committed
Pass task ID in the Roo provider request headers
1 parent 0bc1183 commit 24c9450

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/api/providers/base-openai-compatible-provider.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,10 @@ export abstract class BaseOpenAiCompatibleProvider<ModelName extends string>
8585
params.temperature = this.options.modelTemperature
8686
}
8787

88-
return this.client.chat.completions.create(params)
88+
return this.client.chat.completions.create(
89+
params,
90+
metadata?.taskId ? { headers: { "X-Roo-Task-ID": metadata.taskId } } : undefined,
91+
)
8992
}
9093

9194
override async *createMessage(

0 commit comments

Comments
 (0)