mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user