Skip to content

Commit

Permalink
Add 'developer' to Role type in types.ts (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
rileytomasek authored Dec 18, 2024
1 parent 59f3fbd commit 1aff258
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
import { type OpenAI } from '../openai-types/index.js';

/** The possible roles for a message. */
export type Role = 'system' | 'user' | 'assistant' | 'function' | 'tool';
export type Role =
| 'system'
| 'developer'
| 'user'
| 'assistant'
| 'function'
| 'tool';

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

0 comments on commit 1aff258

Please sign in to comment.