jsvelox 1.7.0 → 1.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/index.js +12 -0
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -70,6 +70,18 @@ export class VeloxAI {
|
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
+
// TR: Konuşma geçmişini temizler. Yeni bir konuşma başlatmak için kullanılır.
|
|
74
|
+
// EN: Clears the conversation history. Used to start a new conversation.
|
|
75
|
+
clearMemory() {
|
|
76
|
+
this.memory = []
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
// TR: Mevcut konuşma geçmişini döndürür.
|
|
80
|
+
// EN: Returns the current conversation history.
|
|
81
|
+
getMemory() {
|
|
82
|
+
return this.memory
|
|
83
|
+
}
|
|
84
|
+
|
|
73
85
|
// TR: Mesajı Anthropic Claude API'sine gönderir ve metin cevabı döndürür.
|
|
74
86
|
// Dahili metottur, doğrudan çağrılmamalıdır.
|
|
75
87
|
// EN: Sends the message to Anthropic Claude API and returns the text response.
|