We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e057f9 commit d99b497Copy full SHA for d99b497
src/lib/ChatCompletionStream.ts
@@ -11,6 +11,7 @@ import {
11
type ChatCompletionCreateParams,
12
type ChatCompletionCreateParamsStreaming,
13
type ChatCompletionCreateParamsBase,
14
+ type ChatCompletionRole,
15
} from '../resources/chat/completions';
16
import {
17
AbstractChatCompletionRunner,
@@ -797,7 +798,7 @@ export namespace ChatCompletionSnapshot {
797
798
/**
799
* The role of the author of this message.
800
*/
- role?: 'system' | 'user' | 'assistant' | 'function' | 'tool';
801
+ role?: ChatCompletionRole;
802
}
803
804
export namespace Message {
0 commit comments