From 1aff25885be112b5e10345cc0c2ed0be858e0e4f Mon Sep 17 00:00:00 2001 From: Riley Tomasek Date: Wed, 18 Dec 2024 16:33:06 -0600 Subject: [PATCH] Add 'developer' to `Role` type in `types.ts` (#56) --- src/types.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/types.ts b/src/types.ts index b35ff6f..7abda1c 100644 --- a/src/types.ts +++ b/src/types.ts @@ -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 = {