UNPKG

openlit

Version:

OpenTelemetry-native Auto instrumentation library for monitoring LLM Applications, facilitating the integration of observability into your GenAI-driven projects

38 lines (37 loc) 1.23 kB
import { Span, Tracer } from '@opentelemetry/api'; import BaseWrapper from '../base-wrapper'; declare class VercelAIWrapper extends BaseWrapper { static aiSystem: string; static serverAddress: string; static serverPort: number; static _patchGenerateText(tracer: Tracer): any; static _patchStreamText(tracer: Tracer): any; static _patchGenerateObject(tracer: Tracer): any; static _patchEmbed(tracer: Tracer): any; static _chatComplete({ args, genAIEndpoint, response, span, outputType, resultOverride, }: { args: any[]; genAIEndpoint: string; response: any; span: Span; outputType: string; resultOverride?: any; }): Promise<any>; static _chatCommonSetter({ args, genAIEndpoint, result, span, isStream, outputType, ttft, tbt, }: { args: any[]; genAIEndpoint: string; result: any; span: Span; isStream: boolean; outputType: string; ttft?: number; tbt?: number; }): Promise<{ genAIEndpoint: string; model: any; cost: number; aiSystem: string; serverAddress: string; serverPort: number; }>; } export default VercelAIWrapper;