node-ejs-renderer/node_modules/openai/lib/chatCompletionUtils.mjs
2024-06-09 13:55:01 -04:00

13 lines
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