@n8n/n8n-nodes-langchain
Version:

54 lines • 1.56 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.assistantRLC = exports.modelRLC = void 0;
const modelRLC = (searchListMethod = 'modelSearch') => ({
displayName: 'Model',
name: 'modelId',
type: 'resourceLocator',
default: { mode: 'list', value: '' },
required: true,
modes: [
{
displayName: 'From List',
name: 'list',
type: 'list',
typeOptions: {
searchListMethod,
searchable: true,
},
},
{
displayName: 'ID',
name: 'id',
type: 'string',
placeholder: 'e.g. gpt-4',
},
],
});
exports.modelRLC = modelRLC;
exports.assistantRLC = {
displayName: 'Assistant',
name: 'assistantId',
type: 'resourceLocator',
description: 'Assistant to respond to the message. You can add, modify or remove assistants in the <a href="https://platform.openai.com/playground?mode=assistant" target="_blank">playground</a>.',
default: { mode: 'list', value: '' },
required: true,
modes: [
{
displayName: 'From List',
name: 'list',
type: 'list',
typeOptions: {
searchListMethod: 'assistantSearch',
searchable: true,
},
},
{
displayName: 'ID',
name: 'id',
type: 'string',
placeholder: 'e.g. asst_abc123',
},
],
};
//# sourceMappingURL=descriptions.js.map