13 lines
377 B
JavaScript
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
|