@adaline/provider 1.7.0 → 1.9.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
|
@@ -89,7 +89,7 @@ declare class InvalidEmbeddingRequestsError extends GatewayBaseError {
|
|
|
89
89
|
static isInvalidEmbeddingRequestsError(error: unknown): error is InvalidEmbeddingRequestsError;
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
-
declare const ChatModelSchema: <R extends z.ZodEnum<[string, ...string[]]> = z.ZodEnum<["system", "user", "assistant", "tool"]>, M extends z.ZodEnum<[string, ...string[]]> = z.ZodEnum<["text", "image", "pdf", "tool-call", "tool-response", "reasoning"]>>(Roles?: R, Modalities?: M) => z.ZodObject<{
|
|
92
|
+
declare const ChatModelSchema: <R extends z.ZodEnum<[string, ...string[]]> = z.ZodEnum<["system", "user", "assistant", "tool"]>, M extends z.ZodEnum<[string, ...string[]]> = z.ZodEnum<["text", "image", "pdf", "tool-call", "tool-response", "reasoning", "error", "search-result"]>>(Roles?: R, Modalities?: M) => z.ZodObject<{
|
|
93
93
|
name: z.ZodString;
|
|
94
94
|
description: z.ZodString;
|
|
95
95
|
roles: z.ZodRecord<R, z.ZodOptional<z.ZodString>>;
|
|
@@ -3197,8 +3197,8 @@ interface ChatModelV1<MS extends ChatModelSchemaType = ChatModelSchemaType> {
|
|
|
3197
3197
|
tools: ToolType[] | undefined;
|
|
3198
3198
|
};
|
|
3199
3199
|
transformConfig(config: ConfigType, messages?: MessageType[], tools?: ToolType[]): ParamsType;
|
|
3200
|
-
transformMessages(messages: MessageType[]): ParamsType;
|
|
3201
|
-
transformTools(tools: ToolType[]): ParamsType;
|
|
3200
|
+
transformMessages(messages: MessageType[], config?: ConfigType, tools?: ToolType[]): ParamsType;
|
|
3201
|
+
transformTools(tools: ToolType[], config?: ConfigType, messages?: MessageType[]): ParamsType;
|
|
3202
3202
|
getCompleteChatUrl(config?: ConfigType, messages?: MessageType[], tools?: ToolType[]): Promise<UrlType>;
|
|
3203
3203
|
getCompleteChatHeaders(config?: ConfigType, messages?: MessageType[], tools?: ToolType[]): Promise<HeadersType>;
|
|
3204
3204
|
getCompleteChatData(config: ConfigType, messages: MessageType[], tools?: ToolType[]): Promise<ParamsType>;
|
package/dist/index.d.ts
CHANGED
|
@@ -89,7 +89,7 @@ declare class InvalidEmbeddingRequestsError extends GatewayBaseError {
|
|
|
89
89
|
static isInvalidEmbeddingRequestsError(error: unknown): error is InvalidEmbeddingRequestsError;
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
-
declare const ChatModelSchema: <R extends z.ZodEnum<[string, ...string[]]> = z.ZodEnum<["system", "user", "assistant", "tool"]>, M extends z.ZodEnum<[string, ...string[]]> = z.ZodEnum<["text", "image", "pdf", "tool-call", "tool-response", "reasoning"]>>(Roles?: R, Modalities?: M) => z.ZodObject<{
|
|
92
|
+
declare const ChatModelSchema: <R extends z.ZodEnum<[string, ...string[]]> = z.ZodEnum<["system", "user", "assistant", "tool"]>, M extends z.ZodEnum<[string, ...string[]]> = z.ZodEnum<["text", "image", "pdf", "tool-call", "tool-response", "reasoning", "error", "search-result"]>>(Roles?: R, Modalities?: M) => z.ZodObject<{
|
|
93
93
|
name: z.ZodString;
|
|
94
94
|
description: z.ZodString;
|
|
95
95
|
roles: z.ZodRecord<R, z.ZodOptional<z.ZodString>>;
|
|
@@ -3197,8 +3197,8 @@ interface ChatModelV1<MS extends ChatModelSchemaType = ChatModelSchemaType> {
|
|
|
3197
3197
|
tools: ToolType[] | undefined;
|
|
3198
3198
|
};
|
|
3199
3199
|
transformConfig(config: ConfigType, messages?: MessageType[], tools?: ToolType[]): ParamsType;
|
|
3200
|
-
transformMessages(messages: MessageType[]): ParamsType;
|
|
3201
|
-
transformTools(tools: ToolType[]): ParamsType;
|
|
3200
|
+
transformMessages(messages: MessageType[], config?: ConfigType, tools?: ToolType[]): ParamsType;
|
|
3201
|
+
transformTools(tools: ToolType[], config?: ConfigType, messages?: MessageType[]): ParamsType;
|
|
3202
3202
|
getCompleteChatUrl(config?: ConfigType, messages?: MessageType[], tools?: ToolType[]): Promise<UrlType>;
|
|
3203
3203
|
getCompleteChatHeaders(config?: ConfigType, messages?: MessageType[], tools?: ToolType[]): Promise<HeadersType>;
|
|
3204
3204
|
getCompleteChatData(config: ConfigType, messages: MessageType[], tools?: ToolType[]): Promise<ParamsType>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adaline/provider",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.9.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": "1.
|
|
49
|
+
"@adaline/types": "1.12.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"
|
|
53
|
-
"
|
|
52
|
+
"@adaline/tsconfig": "0.12.1",
|
|
53
|
+
"eslint-config-adaline": "0.9.1"
|
|
54
54
|
},
|
|
55
55
|
"scripts": {
|
|
56
56
|
"clean": "rimraf node_modules .turbo dist",
|