Skip to content

fix/nvidia-nim #4200

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions packages/components/credentials/NvdiaNIMApi.credential.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { INodeParams, INodeCredential } from '../src/Interface'
import { INodeCredential, INodeParams } from '../src/Interface'

class NvidiaNIMApi implements INodeCredential {
label: string
Expand All @@ -8,12 +8,12 @@ class NvidiaNIMApi implements INodeCredential {
inputs: INodeParams[]

constructor() {
this.label = 'Nvdia NIM API Key'
this.label = 'NVIDIA NGC API Key'
this.name = 'nvidiaNIMApi'
this.version = 1.0
this.inputs = [
{
label: 'Nvidia NIM API Key',
label: 'NVIDIA NGC API Key',
name: 'nvidiaNIMApiKey',
type: 'password'
}
Expand Down
2 changes: 1 addition & 1 deletion packages/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
"multer": "^1.4.5-lts.1",
"multer-s3": "^3.0.1",
"mysql2": "^3.11.3",
"nim-container-manager": "^1.0.5",
"flowise-nim-container-manager": "^1.0.8",
"openai": "^4.82.0",
"pg": "^8.11.1",
"posthog-node": "^3.5.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/server/src/controllers/nvidia-nim/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import axios from 'axios'
import { Request, Response, NextFunction } from 'express'
import { NextFunction, Request, Response } from 'express'

const { NimContainerManager } = require('nim-container-manager')
const { NimContainerManager } = require('flowise-nim-container-manager')

const getToken = async (req: Request, res: Response, next: NextFunction) => {
try {
Expand Down
40 changes: 22 additions & 18 deletions packages/ui/src/ui-component/dialog/NvidiaNIMDialog.jsx
Original file line number Diff line number Diff line change
@@ -1,34 +1,38 @@
import { useState, useEffect } from 'react'
import { createPortal } from 'react-dom'
import axios from 'axios'
import PropTypes from 'prop-types'
import {
Dialog,
DialogTitle,
DialogContent,
DialogActions,
Button,
CircularProgress,
Stepper,
Dialog,
DialogActions,
DialogContent,
DialogTitle,
FormControl,
InputLabel,
MenuItem,
Select,
Step,
StepLabel,
Select,
MenuItem,
FormControl,
InputLabel
Stepper
} from '@mui/material'
import axios from 'axios'
import PropTypes from 'prop-types'
import { useEffect, useState } from 'react'
import { createPortal } from 'react-dom'

const NvidiaNIMDialog = ({ open, onClose, onComplete }) => {
const portalElement = document.getElementById('portal')

const modelOptions = {
'nv-mistralai/mistral-nemo-12b-instruct:latest': {
label: 'Mistral Nemo 12B Instruct',
licenseUrl: 'https://catalog.ngc.nvidia.com/orgs/nvidia/teams/nv-mistralai/containers/mistral-nemo-12b-instruct'
},
'meta/llama-3.1-8b-instruct-rtx:latest': {
'nvcr.io/nim/meta/llama-3.1-8b-instruct:1.8.0-RTX': {
label: 'Llama 3.1 8B Instruct',
licenseUrl: 'https://catalog.ngc.nvidia.com/orgs/nim/teams/meta/containers/llama-3.1-8b-instruct'
},
'nvcr.io/nim/deepseek-ai/deepseek-r1-distill-llama-8b:1.8.0-RTX': {
label: 'DeepSeek R1 Distill Llama 8B',
licenseUrl: 'https://catalog.ngc.nvidia.com/orgs/nim/teams/deepseek-ai/containers/deepseek-r1-distill-llama-8b'
},
'nvcr.io/nim/nv-mistralai/mistral-nemo-12b-instruct:1.8.0-rtx': {
label: 'Mistral Nemo 12B Instruct',
licenseUrl: 'https://catalog.ngc.nvidia.com/orgs/nim/teams/nv-mistralai/containers/mistral-nemo-12b-instruct'
}
}

Expand Down
Loading