@opentiny/next-remoter 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/dist/composable/CustomAgentModelProvider.d.ts +3 -1
- package/dist/next-remoter-runtime.es.js +55962 -55926
- package/dist/next-remoter.cjs.js +31 -31
- package/dist/next-remoter.css +1 -1
- package/dist/next-remoter.es.js +4863 -4836
- package/dist/style.css +1 -1
- package/dist/types/type.d.ts +5 -0
- package/package.json +2 -2
package/dist/types/type.d.ts
CHANGED
|
@@ -17,6 +17,11 @@ export type ICustomAgentModelProviderLlmConfig = IAgentModelProviderLlmConfig &
|
|
|
17
17
|
maxSteps?: number;
|
|
18
18
|
providerOptions?: Record<string, any>;
|
|
19
19
|
extraTools?: Record<string, any>;
|
|
20
|
+
/**
|
|
21
|
+
* 自定义请求 Header,会在创建 Provider 实例时透传给 ai-sdk
|
|
22
|
+
* 适用于需要在每次请求时携带特定 Header 的场景(如鉴权、链路追踪等)
|
|
23
|
+
*/
|
|
24
|
+
headers?: Record<string, string>;
|
|
20
25
|
/**
|
|
21
26
|
* 在 chatStream 调用前执行的钩子函数
|
|
22
27
|
* 可用于修改消息内容,例如自动添加截图
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opentiny/next-remoter",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"homepage": "https://docs.opentiny.design/next-sdk/guide/tiny-robot-remoter.html",
|
|
6
6
|
"repository": {
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"@ai-sdk/openai": "^3.0.0",
|
|
49
49
|
"@ai-sdk/provider": "^3.0.0",
|
|
50
50
|
"@ai-sdk/provider-utils": "^4.0.14",
|
|
51
|
-
"@opentiny/next-sdk": "0.2.
|
|
51
|
+
"@opentiny/next-sdk": "0.2.6"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@opentiny/unplugin-tiny-vue": "^1.0.0",
|