objectiveai 1.1.3 → 1.1.5
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.ts +14 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -132,7 +132,7 @@ export declare namespace Chat {
|
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
134
|
}
|
|
135
|
-
type Message = Message.Developer | Message.System | Message.User | Message.Assistant | Message.Tool | Message.ChatCompletion | Message.ScoreCompletion;
|
|
135
|
+
type Message = Message.Developer | Message.System | Message.User | Message.Assistant | Message.Tool | Message.ChatCompletion | Message.ScoreCompletion | Message.MultichatCompletion;
|
|
136
136
|
namespace Message {
|
|
137
137
|
type SimpleContent = string | SimpleContentPart[];
|
|
138
138
|
interface SimpleContentPart {
|
|
@@ -170,6 +170,7 @@ export declare namespace Chat {
|
|
|
170
170
|
}
|
|
171
171
|
interface InputVideo {
|
|
172
172
|
video_url: InputVideo.Definition;
|
|
173
|
+
type: "video_url";
|
|
173
174
|
}
|
|
174
175
|
namespace InputVideo {
|
|
175
176
|
interface Definition {
|
|
@@ -243,6 +244,12 @@ export declare namespace Chat {
|
|
|
243
244
|
choice_index: number;
|
|
244
245
|
name?: string | null;
|
|
245
246
|
}
|
|
247
|
+
interface MultichatCompletion {
|
|
248
|
+
role: "multichat_completion";
|
|
249
|
+
id: string;
|
|
250
|
+
choice_index: number;
|
|
251
|
+
name?: string | null;
|
|
252
|
+
}
|
|
246
253
|
}
|
|
247
254
|
interface ProviderPreferences {
|
|
248
255
|
order?: string[] | null;
|
|
@@ -505,7 +512,7 @@ export declare namespace Score {
|
|
|
505
512
|
}
|
|
506
513
|
type ChatCompletionCreateParams = ChatCompletionCreateParamsStreaming | ChatCompletionCreateParamsNonStreaming;
|
|
507
514
|
type Model = string | ScoreModelBase;
|
|
508
|
-
type Choice = string | Choice.ChatCompletion | Choice.ScoreCompletion;
|
|
515
|
+
type Choice = string | Chat.Completions.Response.Unary.Message | Choice.ChatCompletion | Choice.ScoreCompletion | Choice.MultichatCompletion;
|
|
509
516
|
namespace Choice {
|
|
510
517
|
interface ChatCompletion {
|
|
511
518
|
type: "chat_completion";
|
|
@@ -517,6 +524,11 @@ export declare namespace Score {
|
|
|
517
524
|
id: string;
|
|
518
525
|
choice_index: number;
|
|
519
526
|
}
|
|
527
|
+
interface MultichatCompletion {
|
|
528
|
+
type: "multichat_completion";
|
|
529
|
+
id: string;
|
|
530
|
+
choice_index: number;
|
|
531
|
+
}
|
|
520
532
|
}
|
|
521
533
|
}
|
|
522
534
|
namespace Response {
|