@adminforth/text-complete 2.0.7 → 2.0.8
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/dist/index.js +1 -1
- package/index.ts +1 -1
- package/package.json +3 -2
package/dist/index.js
CHANGED
|
@@ -120,7 +120,7 @@ export default class TextCompletePlugin extends AdminForthPlugin {
|
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
122
|
process.env.HEAVY_DEBUG && console.log('🪲 OpenAI Prompt 🧠', content);
|
|
123
|
-
const { content: respContent } = yield this.options.adapter.complete(content,
|
|
123
|
+
const { content: respContent } = yield this.options.adapter.complete(content, (_l = this.options.expert) === null || _l === void 0 ? void 0 : _l.maxTokens);
|
|
124
124
|
let suggestion = respContent;
|
|
125
125
|
if (suggestion.startsWith(currentVal)) {
|
|
126
126
|
suggestion = suggestion.slice(currentVal.length);
|
package/index.ts
CHANGED
|
@@ -145,7 +145,7 @@ export default class TextCompletePlugin extends AdminForthPlugin {
|
|
|
145
145
|
}
|
|
146
146
|
|
|
147
147
|
process.env.HEAVY_DEBUG && console.log('🪲 OpenAI Prompt 🧠', content);
|
|
148
|
-
const { content: respContent } = await this.options.adapter.complete(content,
|
|
148
|
+
const { content: respContent } = await this.options.adapter.complete(content, this.options.expert?.maxTokens);
|
|
149
149
|
let suggestion = respContent
|
|
150
150
|
|
|
151
151
|
if (suggestion.startsWith(currentVal)) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adminforth/text-complete",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.8",
|
|
4
4
|
"description": "Text completion plugin for adminforth",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@types/node": "^22.10.7",
|
|
27
|
+
"adminforth": "^2.35.0",
|
|
27
28
|
"semantic-release": "^24.2.1",
|
|
28
29
|
"semantic-release-slack-bot": "^4.0.2",
|
|
29
30
|
"typescript": "^5.7.3"
|
|
@@ -54,6 +55,6 @@
|
|
|
54
55
|
]
|
|
55
56
|
},
|
|
56
57
|
"peerDependencies": {
|
|
57
|
-
"adminforth": "^2.
|
|
58
|
+
"adminforth": "^2.35.0"
|
|
58
59
|
}
|
|
59
60
|
}
|