mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-28 09:00:52 +03:00
dd56d03b78
This update adds support for Opik tracer in Flowise. It includes new credential components, analytic nodes, and UI assets for both tracers. The changes enhance observability by allowing users to integrate Opik for better model monitoring, analysis and evaluation.
34 lines
814 B
TypeScript
34 lines
814 B
TypeScript
import { INode, INodeParams } from '../../../src/Interface'
|
|
|
|
class Opik_Analytic implements INode {
|
|
label: string
|
|
name: string
|
|
version: number
|
|
description: string
|
|
type: string
|
|
icon: string
|
|
category: string
|
|
baseClasses: string[]
|
|
inputs?: INodeParams[]
|
|
credential: INodeParams
|
|
|
|
constructor() {
|
|
this.label = 'Opik'
|
|
this.name = 'opik'
|
|
this.version = 1.0
|
|
this.type = 'Opik'
|
|
this.icon = 'opik.png'
|
|
this.category = 'Analytic'
|
|
this.baseClasses = [this.type]
|
|
this.inputs = []
|
|
this.credential = {
|
|
label: 'Connect Credential',
|
|
name: 'credential',
|
|
type: 'credential',
|
|
credentialNames: ['opikApi']
|
|
}
|
|
}
|
|
}
|
|
|
|
module.exports = { nodeClass: Opik_Analytic }
|