mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 17:46:45 +00:00
refactor(core): Allow custom types on getCredentials (no-changelog) (#10567)
This commit is contained in:
committed by
GitHub
parent
52c574d83f
commit
be52176585
@@ -79,10 +79,10 @@ export const VectorStoreZep = createVectorStoreNode({
|
||||
embeddingDimensions?: number;
|
||||
}) || {};
|
||||
|
||||
const credentials = (await context.getCredentials('zepApi')) as {
|
||||
const credentials = await context.getCredentials<{
|
||||
apiKey?: string;
|
||||
apiUrl: string;
|
||||
};
|
||||
}>('zepApi');
|
||||
|
||||
const zepConfig: IZepConfig = {
|
||||
apiUrl: credentials.apiUrl,
|
||||
@@ -102,10 +102,10 @@ export const VectorStoreZep = createVectorStoreNode({
|
||||
embeddingDimensions?: number;
|
||||
}) || {};
|
||||
|
||||
const credentials = (await context.getCredentials('zepApi')) as {
|
||||
const credentials = await context.getCredentials<{
|
||||
apiKey?: string;
|
||||
apiUrl: string;
|
||||
};
|
||||
}>('zepApi');
|
||||
|
||||
const zepConfig = {
|
||||
apiUrl: credentials.apiUrl,
|
||||
|
||||
@@ -110,10 +110,10 @@ export class VectorStoreZepInsert implements INodeType {
|
||||
embeddingDimensions?: number;
|
||||
}) || {};
|
||||
|
||||
const credentials = (await this.getCredentials('zepApi')) as {
|
||||
const credentials = await this.getCredentials<{
|
||||
apiKey?: string;
|
||||
apiUrl: string;
|
||||
};
|
||||
}>('zepApi');
|
||||
|
||||
const documentInput = (await this.getInputConnectionData(NodeConnectionType.AiDocument, 0)) as
|
||||
| N8nJsonLoader
|
||||
|
||||
@@ -93,10 +93,10 @@ export class VectorStoreZepLoad implements INodeType {
|
||||
embeddingDimensions?: number;
|
||||
}) || {};
|
||||
|
||||
const credentials = (await this.getCredentials('zepApi')) as {
|
||||
const credentials = await this.getCredentials<{
|
||||
apiKey?: string;
|
||||
apiUrl: string;
|
||||
};
|
||||
}>('zepApi');
|
||||
const embeddings = (await this.getInputConnectionData(
|
||||
NodeConnectionType.AiEmbedding,
|
||||
0,
|
||||
|
||||
Reference in New Issue
Block a user