ci: Fix lint warnings in @n8n/chat and @n8n/nodes-langchain (no-changelog) (#7884)

Solve lint warnings shown on all PRs for `@n8n/chat` and
`@n8n/nodes-langchain`

Example: https://github.com/n8n-io/n8n/pull/7883/files
This commit is contained in:
Iván Ovejero
2023-11-30 13:22:27 +01:00
committed by GitHub
parent 627ddb91fb
commit b024cc52e7
4 changed files with 22 additions and 23 deletions

View File

@@ -192,13 +192,11 @@ export class LmOpenAi implements INodeType {
uri = `${options.baseURL}/models`;
}
const data = (
await this.helpers.requestWithAuthentication.call(this, 'openAiApi', {
method: 'GET',
uri,
json: true,
})
).data as Array<{ owned_by: string; id: string }>;
const { data } = (await this.helpers.requestWithAuthentication.call(this, 'openAiApi', {
method: 'GET',
uri,
json: true,
})) as { data: Array<{ owned_by: string; id: string }> };
for (const model of data) {
if (!model.owned_by?.startsWith('system')) continue;