@adaline/provider 0.15.0 → 0.16.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/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/package.json +4 -4
package/dist/index.d.mts
CHANGED
|
@@ -2112,15 +2112,15 @@ interface EmbeddingModelV1<MS extends EmbeddingModelSchemaType = EmbeddingModelS
|
|
|
2112
2112
|
transformGetEmbeddingsResponse(response: any): EmbeddingResponseType;
|
|
2113
2113
|
}
|
|
2114
2114
|
|
|
2115
|
-
interface ProviderV1<
|
|
2115
|
+
interface ProviderV1<C extends Record<string, any> = Record<string, any>, E extends Record<string, any> = Record<string, any>> {
|
|
2116
2116
|
readonly version: "v1";
|
|
2117
2117
|
readonly name: string;
|
|
2118
2118
|
chatModelLiterals(): string[];
|
|
2119
2119
|
chatModelSchemas(): Record<string, ChatModelSchemaType>;
|
|
2120
|
-
chatModel(options:
|
|
2120
|
+
chatModel(options: C): ChatModelV1;
|
|
2121
2121
|
embeddingModelLiterals(): string[];
|
|
2122
2122
|
embeddingModelSchemas(): Record<string, EmbeddingModelSchemaType>;
|
|
2123
|
-
embeddingModel(options:
|
|
2123
|
+
embeddingModel(options: E): EmbeddingModelV1;
|
|
2124
2124
|
}
|
|
2125
2125
|
|
|
2126
2126
|
declare const CHAT_CONFIG: {
|
package/dist/index.d.ts
CHANGED
|
@@ -2112,15 +2112,15 @@ interface EmbeddingModelV1<MS extends EmbeddingModelSchemaType = EmbeddingModelS
|
|
|
2112
2112
|
transformGetEmbeddingsResponse(response: any): EmbeddingResponseType;
|
|
2113
2113
|
}
|
|
2114
2114
|
|
|
2115
|
-
interface ProviderV1<
|
|
2115
|
+
interface ProviderV1<C extends Record<string, any> = Record<string, any>, E extends Record<string, any> = Record<string, any>> {
|
|
2116
2116
|
readonly version: "v1";
|
|
2117
2117
|
readonly name: string;
|
|
2118
2118
|
chatModelLiterals(): string[];
|
|
2119
2119
|
chatModelSchemas(): Record<string, ChatModelSchemaType>;
|
|
2120
|
-
chatModel(options:
|
|
2120
|
+
chatModel(options: C): ChatModelV1;
|
|
2121
2121
|
embeddingModelLiterals(): string[];
|
|
2122
2122
|
embeddingModelSchemas(): Record<string, EmbeddingModelSchemaType>;
|
|
2123
|
-
embeddingModel(options:
|
|
2123
|
+
embeddingModel(options: E): EmbeddingModelV1;
|
|
2124
2124
|
}
|
|
2125
2125
|
|
|
2126
2126
|
declare const CHAT_CONFIG: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adaline/provider",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.16.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"private": false,
|
|
@@ -46,11 +46,11 @@
|
|
|
46
46
|
],
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"zod": "^3.23.8",
|
|
49
|
-
"@adaline/types": "0.
|
|
49
|
+
"@adaline/types": "0.14.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@adaline/tsconfig": "0.
|
|
53
|
-
"eslint-config-adaline": "0.
|
|
52
|
+
"@adaline/tsconfig": "0.10.0",
|
|
53
|
+
"eslint-config-adaline": "0.7.0"
|
|
54
54
|
},
|
|
55
55
|
"scripts": {
|
|
56
56
|
"clean": "rimraf node_modules .turbo dist",
|