modelfusion 0.121.1 → 0.121.2
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/CHANGELOG.md
CHANGED
@@ -1,10 +1,16 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## v0.121.2 - 2024-01-11
|
4
|
+
|
5
|
+
### Fixed
|
6
|
+
|
7
|
+
- Ollama response schema for repeated calls with Ollama 0.1.19 completion models. Thanks [@jakedetels](https://github.com/Necmttn) for the bugfix!
|
8
|
+
|
3
9
|
## v0.121.1 - 2024-01-10
|
4
10
|
|
5
11
|
### Fixed
|
6
12
|
|
7
|
-
- Ollama response schema for repeated calls with Ollama 0.1.19
|
13
|
+
- Ollama response schema for repeated calls with Ollama 0.1.19 chat models. Thanks [@jakedetels](https://github.com/jakedetels) for the bug report!
|
8
14
|
|
9
15
|
## v0.121.0 - 2024-01-09
|
10
16
|
|
package/README.md
CHANGED
@@ -583,7 +583,7 @@ modelfusion.setLogFormat("detailed-object"); // log full events
|
|
583
583
|
|
584
584
|
### [Examples & Tutorials](https://modelfusion.dev/tutorial)
|
585
585
|
|
586
|
-
### [Showcase](https://modelfusion.dev/showcase)
|
586
|
+
### [Showcase](https://modelfusion.dev/tutorial/showcase)
|
587
587
|
|
588
588
|
### [API Reference](https://modelfusion.dev/api/modules)
|
589
589
|
|
@@ -214,7 +214,7 @@ const ollamaCompletionResponseSchema = zod_1.z.object({
|
|
214
214
|
response: zod_1.z.string(),
|
215
215
|
total_duration: zod_1.z.number(),
|
216
216
|
load_duration: zod_1.z.number().optional(),
|
217
|
-
prompt_eval_count: zod_1.z.number(),
|
217
|
+
prompt_eval_count: zod_1.z.number().optional(),
|
218
218
|
prompt_eval_duration: zod_1.z.number().optional(),
|
219
219
|
eval_count: zod_1.z.number(),
|
220
220
|
eval_duration: zod_1.z.number(),
|
@@ -67,10 +67,10 @@ export declare class OllamaCompletionModel<CONTEXT_WINDOW_SIZE extends number |
|
|
67
67
|
response: string;
|
68
68
|
created_at: string;
|
69
69
|
total_duration: number;
|
70
|
-
prompt_eval_count: number;
|
71
70
|
eval_count: number;
|
72
71
|
eval_duration: number;
|
73
72
|
load_duration?: number | undefined;
|
73
|
+
prompt_eval_count?: number | undefined;
|
74
74
|
prompt_eval_duration?: number | undefined;
|
75
75
|
context?: number[] | undefined;
|
76
76
|
};
|
@@ -86,10 +86,10 @@ export declare class OllamaCompletionModel<CONTEXT_WINDOW_SIZE extends number |
|
|
86
86
|
response: string;
|
87
87
|
created_at: string;
|
88
88
|
total_duration: number;
|
89
|
-
prompt_eval_count: number;
|
90
89
|
eval_count: number;
|
91
90
|
eval_duration: number;
|
92
91
|
load_duration?: number | undefined;
|
92
|
+
prompt_eval_count?: number | undefined;
|
93
93
|
prompt_eval_duration?: number | undefined;
|
94
94
|
context?: number[] | undefined;
|
95
95
|
};
|
@@ -105,10 +105,10 @@ export declare class OllamaCompletionModel<CONTEXT_WINDOW_SIZE extends number |
|
|
105
105
|
response: string;
|
106
106
|
created_at: string;
|
107
107
|
total_duration: number;
|
108
|
-
prompt_eval_count: number;
|
109
108
|
eval_count: number;
|
110
109
|
eval_duration: number;
|
111
110
|
load_duration?: number | undefined;
|
111
|
+
prompt_eval_count?: number | undefined;
|
112
112
|
prompt_eval_duration?: number | undefined;
|
113
113
|
context?: number[] | undefined;
|
114
114
|
};
|
@@ -155,7 +155,7 @@ declare const ollamaCompletionResponseSchema: z.ZodObject<{
|
|
155
155
|
response: z.ZodString;
|
156
156
|
total_duration: z.ZodNumber;
|
157
157
|
load_duration: z.ZodOptional<z.ZodNumber>;
|
158
|
-
prompt_eval_count: z.ZodNumber
|
158
|
+
prompt_eval_count: z.ZodOptional<z.ZodNumber>;
|
159
159
|
prompt_eval_duration: z.ZodOptional<z.ZodNumber>;
|
160
160
|
eval_count: z.ZodNumber;
|
161
161
|
eval_duration: z.ZodNumber;
|
@@ -166,10 +166,10 @@ declare const ollamaCompletionResponseSchema: z.ZodObject<{
|
|
166
166
|
response: string;
|
167
167
|
created_at: string;
|
168
168
|
total_duration: number;
|
169
|
-
prompt_eval_count: number;
|
170
169
|
eval_count: number;
|
171
170
|
eval_duration: number;
|
172
171
|
load_duration?: number | undefined;
|
172
|
+
prompt_eval_count?: number | undefined;
|
173
173
|
prompt_eval_duration?: number | undefined;
|
174
174
|
context?: number[] | undefined;
|
175
175
|
}, {
|
@@ -178,10 +178,10 @@ declare const ollamaCompletionResponseSchema: z.ZodObject<{
|
|
178
178
|
response: string;
|
179
179
|
created_at: string;
|
180
180
|
total_duration: number;
|
181
|
-
prompt_eval_count: number;
|
182
181
|
eval_count: number;
|
183
182
|
eval_duration: number;
|
184
183
|
load_duration?: number | undefined;
|
184
|
+
prompt_eval_count?: number | undefined;
|
185
185
|
prompt_eval_duration?: number | undefined;
|
186
186
|
context?: number[] | undefined;
|
187
187
|
}>;
|
@@ -262,10 +262,10 @@ export declare const OllamaCompletionResponseFormat: {
|
|
262
262
|
response: string;
|
263
263
|
created_at: string;
|
264
264
|
total_duration: number;
|
265
|
-
prompt_eval_count: number;
|
266
265
|
eval_count: number;
|
267
266
|
eval_duration: number;
|
268
267
|
load_duration?: number | undefined;
|
268
|
+
prompt_eval_count?: number | undefined;
|
269
269
|
prompt_eval_duration?: number | undefined;
|
270
270
|
context?: number[] | undefined;
|
271
271
|
}>;
|
@@ -210,7 +210,7 @@ const ollamaCompletionResponseSchema = z.object({
|
|
210
210
|
response: z.string(),
|
211
211
|
total_duration: z.number(),
|
212
212
|
load_duration: z.number().optional(),
|
213
|
-
prompt_eval_count: z.number(),
|
213
|
+
prompt_eval_count: z.number().optional(),
|
214
214
|
prompt_eval_duration: z.number().optional(),
|
215
215
|
eval_count: z.number(),
|
216
216
|
eval_duration: z.number(),
|