Add missing options to cline stream

This commit is contained in:
Saoud Rizwan
2025-03-04 21:40:42 -08:00
parent 8f8de75dc8
commit 3ecabb559e
+9 -1
View File
@@ -19,7 +19,15 @@ export class ClineHandler implements ApiHandler {
}
async *createMessage(systemPrompt: string, messages: Anthropic.Messages.MessageParam[]): ApiStream {
const genId = yield* streamOpenRouterFormatRequest(this.client, systemPrompt, messages, this.getModel())
const model = this.getModel()
const genId = yield* streamOpenRouterFormatRequest(
this.client,
systemPrompt,
messages,
model,
this.options.o3MiniReasoningEffort,
this.options.thinkingBudgetTokens,
)
try {
const response = await axios.get(`https://api.cline.bot/v1/generation?id=${genId}`, {