-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathOpenAiMessageRole.ts
More file actions
26 lines (25 loc) · 1 KB
/
OpenAiMessageRole.ts
File metadata and controls
26 lines (25 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// This file was auto-generated by Fern from our API Definition.
/**
* Roles for OpenAI messages.
*
* Note: The "function" role is deprecated in favor of "tool". Use "tool" for new implementations.
* The "developer" role is required for GPT-5.x and o-series models.
*/
export const OpenAiMessageRole = {
Assistant: "assistant",
/**
* @deprecated The "function" role is deprecated in favor of "tool". Use "tool" for new implementations.
* @see https://platform.openai.com/docs/guides/function-calling
*/
Function: "function",
User: "user",
System: "system",
Tool: "tool",
/**
* The "developer" role is used for system-level instructions in GPT-5.x and o-series models.
* It provides a way to set high-level instructions that take precedence over user messages.
* @see https://platform.openai.com/docs/guides/text-generation
*/
Developer: "developer",
} as const;
export type OpenAiMessageRole = (typeof OpenAiMessageRole)[keyof typeof OpenAiMessageRole];