@caido/sdk-frontend 0.54.2-beta.13 → 0.54.2-beta.14
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 +2 -2
- package/src/types/types/ai.d.ts +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@caido/sdk-frontend",
|
|
3
|
-
"version": "0.54.2-beta.
|
|
3
|
+
"version": "0.54.2-beta.14",
|
|
4
4
|
"description": "Typing for the Caido Frontend SDK",
|
|
5
5
|
"author": "Caido Labs Inc. <dev@caido.io>",
|
|
6
6
|
"repository": "https://github.com/caido/sdk-js/",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"src/*"
|
|
13
13
|
],
|
|
14
14
|
"peerDependencies": {
|
|
15
|
-
"@ai-sdk/provider": "^
|
|
15
|
+
"@ai-sdk/provider": "^3.0.1",
|
|
16
16
|
"@codemirror/view": "^6.0.0",
|
|
17
17
|
"@codemirror/state": "^6.0.0",
|
|
18
18
|
"vue": "^3.0.0"
|
package/src/types/types/ai.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type LanguageModelV3, type ProviderV3 } from "@ai-sdk/provider";
|
|
2
2
|
/**
|
|
3
3
|
* Settings for AI reasoning.
|
|
4
4
|
* @category AI
|
|
@@ -21,7 +21,7 @@ export type AILanguageModelSettings = {
|
|
|
21
21
|
* Official AI Provider to be used by the [ai](https://ai-sdk.dev/) library.
|
|
22
22
|
* @category AI
|
|
23
23
|
*/
|
|
24
|
-
export type AIProvider =
|
|
24
|
+
export type AIProvider = ProviderV3 & ((modelId: string, settings?: AILanguageModelSettings) => LanguageModelV3);
|
|
25
25
|
/**
|
|
26
26
|
* AI upstream provider ID.
|
|
27
27
|
* @category AI
|