objectiveai 1.1.3 → 1.1.4
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 +13 -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 {
|
|
@@ -243,6 +243,12 @@ export declare namespace Chat {
|
|
|
243
243
|
choice_index: number;
|
|
244
244
|
name?: string | null;
|
|
245
245
|
}
|
|
246
|
+
interface MultichatCompletion {
|
|
247
|
+
role: "multichat_completion";
|
|
248
|
+
id: string;
|
|
249
|
+
choice_index: number;
|
|
250
|
+
name?: string | null;
|
|
251
|
+
}
|
|
246
252
|
}
|
|
247
253
|
interface ProviderPreferences {
|
|
248
254
|
order?: string[] | null;
|
|
@@ -505,7 +511,7 @@ export declare namespace Score {
|
|
|
505
511
|
}
|
|
506
512
|
type ChatCompletionCreateParams = ChatCompletionCreateParamsStreaming | ChatCompletionCreateParamsNonStreaming;
|
|
507
513
|
type Model = string | ScoreModelBase;
|
|
508
|
-
type Choice = string | Choice.ChatCompletion | Choice.ScoreCompletion;
|
|
514
|
+
type Choice = string | Chat.Completions.Response.Unary.Message | Choice.ChatCompletion | Choice.ScoreCompletion | Choice.MultichatCompletion;
|
|
509
515
|
namespace Choice {
|
|
510
516
|
interface ChatCompletion {
|
|
511
517
|
type: "chat_completion";
|
|
@@ -517,6 +523,11 @@ export declare namespace Score {
|
|
|
517
523
|
id: string;
|
|
518
524
|
choice_index: number;
|
|
519
525
|
}
|
|
526
|
+
interface MultichatCompletion {
|
|
527
|
+
type: "multichat_completion";
|
|
528
|
+
id: string;
|
|
529
|
+
choice_index: number;
|
|
530
|
+
}
|
|
520
531
|
}
|
|
521
532
|
}
|
|
522
533
|
namespace Response {
|