Unit_AI/node_modules/openai/lib/chatCompletionUtils.mjs
2024-06-01 16:24:36 -04:00

13 lines
No EOL
377 B
JavaScript

export const isAssistantMessage = (message) => {
return message?.role === 'assistant';
};
export const isFunctionMessage = (message) => {
return message?.role === 'function';
};
export const isToolMessage = (message) => {
return message?.role === 'tool';
};
export function isPresent(obj) {
return obj != null;
}
//# sourceMappingURL=chatCompletionUtils.mjs.map