Genkit JS API reference
    Preparing search index...

    Function compatOaiTranslationModelRef

    • Translation ModelRef helper, with reasonable defaults for OpenAI-compatible providers

      Type Parameters

      Parameters

      • params: {
            config?: any;
            configSchema?: CustomOptions;
            info?: {
                configSchema?: Record<string, any>;
                label?: string;
                stage?: "stable" | "unstable" | "featured" | "legacy" | "deprecated";
                supports?: {
                    constrained?: "all" | "none" | "no-tools";
                    contentType?: string[];
                    context?: boolean;
                    media?: boolean;
                    multiturn?: boolean;
                    output?: string[];
                    systemRole?: boolean;
                    toolChoice?: boolean;
                    tools?: boolean;
                };
                versions?: string[];
            };
            name: string;
            namespace?: string;
        }

      Returns ModelReference<any>