Skip to content

Conversation

@n1n-api
Copy link

@n1n-api n1n-api commented Jan 18, 2026

This PR adds n1n as a chat model provider to Flowise.

Changes:

  • Added ChatN1n node
  • Added N1nApi credential
  • Added n1n models to models.json
  • Added n1n icon

- Add ChatN1n node
- Add N1nApi credential
- Update models.json with n1n models
- Add n1n SVG icon
@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @n1n-api, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request integrates the n1n provider into Flowise, significantly expanding the platform's chat model capabilities. It introduces the necessary infrastructure for authenticating with n1n API keys, provides a new chat model node for interacting with n1n's language models, and updates the system's model registry to reflect the newly supported models. This enhancement allows users to leverage a broader range of AI services directly within their Flowise applications.

Highlights

  • New Credential Type: A new n1nApi credential type has been introduced to securely manage API keys for the n1n service.
  • ChatN1n Chat Model Node: A dedicated ChatN1n chat model node has been added, enabling integration with n1n large language models within Flowise workflows.
  • Model Configuration Update: The models.json file has been updated to include various n1n chat models, such as gpt-4o-mini, gpt-4o, gpt-3.5-turbo, and deepseek-chat.
  • New Icon: An SVG icon for the n1n provider has been added for visual representation in the UI.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces support for the n1n chat model provider. The changes include adding a new credential type, a new chat model node, and the corresponding model definitions and icon. The implementation correctly follows the existing patterns in the codebase by extending the Langchain OpenAI chat model, which is appropriate for an OpenAI-compatible API. The code is well-structured. I have one minor suggestion to improve code quality.

import { getBaseClasses, getCredentialData, getCredentialParam } from '../../../src/utils'
import { ChatN1n } from './FlowiseChatN1n'
import { getModels, MODEL_TYPE } from '../../../src/modelLoader'
import { OpenAI as OpenAIClient } from 'openai'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The OpenAIClient is imported but never used within the file. It's good practice to remove unused imports to keep the code clean and reduce the final bundle size.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please remove

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant