@magpie-community/opencode-workbuddy-auth 0.2.5 → 0.2.6
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/README.md +3 -1
- package/index.mjs +4 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -251,7 +251,9 @@ same words ending `stop`, or the filter cutting off a reply after other
|
|
|
251
251
|
words, go through as they came.
|
|
252
252
|
copilot.tencent.com sends the line with a newline on each side
|
|
253
253
|
(`"\nSorry, I can't respond to this question.\n"`); since 0.2.5 white
|
|
254
|
-
space around it no longer lets it through.
|
|
254
|
+
space around it no longer lets it through. It also puts `"tool_calls": []` on
|
|
255
|
+
every delta; since 0.2.6 only a list with a call in it lets the reply
|
|
256
|
+
through as it came.
|
|
255
257
|
|
|
256
258
|
## Models
|
|
257
259
|
|
package/index.mjs
CHANGED
|
@@ -1660,7 +1660,10 @@ function unsaid(res) {
|
|
|
1660
1660
|
const c = chunkOf(ev)?.choices?.[0]
|
|
1661
1661
|
const text = typeof c?.delta?.content === "string" ? c.delta.content : ""
|
|
1662
1662
|
const finish = c?.finish_reason
|
|
1663
|
-
|
|
1663
|
+
// copilot.tencent.com sends "tool_calls": [] on every delta, text
|
|
1664
|
+
// too: only a list with a call in it is one
|
|
1665
|
+
const calls = c?.delta?.tool_calls
|
|
1666
|
+
if ((Array.isArray(calls) ? calls.length > 0 : calls) || (text && !filterSaid(said + text))) {
|
|
1664
1667
|
open = false
|
|
1665
1668
|
const out = [...held, ev]
|
|
1666
1669
|
held = []
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@magpie-community/opencode-workbuddy-auth",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.6",
|
|
4
4
|
"description": "OpenCode provider plugins for WorkBuddy's plans: WorkBuddy (CodeBuddy, copilot.tencent.com) and WorkBuddy AI (www.workbuddy.ai)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./index.mjs",
|