Skip to content

Commit d99b497

Browse files
committed
fix: ChatCompletionStream types
1 parent 0e057f9 commit d99b497

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lib/ChatCompletionStream.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import {
1111
type ChatCompletionCreateParams,
1212
type ChatCompletionCreateParamsStreaming,
1313
type ChatCompletionCreateParamsBase,
14+
type ChatCompletionRole,
1415
} from '../resources/chat/completions';
1516
import {
1617
AbstractChatCompletionRunner,
@@ -797,7 +798,7 @@ export namespace ChatCompletionSnapshot {
797798
/**
798799
* The role of the author of this message.
799800
*/
800-
role?: 'system' | 'user' | 'assistant' | 'function' | 'tool';
801+
role?: ChatCompletionRole;
801802
}
802803

803804
export namespace Message {

0 commit comments

Comments
 (0)