Skip to content
This repository was archived by the owner on Nov 27, 2025. It is now read-only.

Commit 1aff258

Browse files
authored
Add 'developer' to Role type in types.ts (#56)
1 parent 59f3fbd commit 1aff258

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/types.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
import { type OpenAI } from '../openai-types/index.js';
22

33
/** The possible roles for a message. */
4-
export type Role = 'system' | 'user' | 'assistant' | 'function' | 'tool';
4+
export type Role =
5+
| 'system'
6+
| 'developer'
7+
| 'user'
8+
| 'assistant'
9+
| 'function'
10+
| 'tool';
511

612
/** The name and arguments of a function that should be called, as generated by the model. */
713
export type FunctionCall = {

0 commit comments

Comments
 (0)