Remove Kodu provider

This commit is contained in:
Saoud Rizwan
2024-08-27 21:38:01 -04:00
parent ac6f712b9c
commit 843ef29a07
22 changed files with 95 additions and 689 deletions

View File

@@ -1261,8 +1261,8 @@ ${this.customInstructions.trim()}
)
const { message, userCredits } = await this.api.createMessage(systemPrompt, adjustedMessages, tools)
if (userCredits !== undefined) {
console.log("Updating kodu credits", userCredits)
this.providerRef.deref()?.updateKoduCredits(userCredits)
console.log("Updating credits", userCredits)
// TODO: update credits
}
return message
} catch (error) {