@genkit-ai/compat-oai
Version:
Genkit AI framework plugin for OpenAI APIs.
17 lines (14 loc) • 623 B
text/typescript
import * as genkit from 'genkit';
import { z } from 'genkit';
import { ModelInfo } from 'genkit/model';
/** XAI image generation ModelRef helper, same as the OpenAI-compatible model specification. */
declare function xaiImageModelRef<CustomOptions extends z.ZodTypeAny = z.ZodTypeAny>(params: {
name: string;
info?: ModelInfo;
configSchema?: CustomOptions;
config?: any;
}): genkit.ModelReference<CustomOptions | z.AnyZodObject>;
declare const SUPPORTED_IMAGE_MODELS: {
'grok-2-image-1212': genkit.ModelReference<z.ZodTypeAny | z.AnyZodObject>;
};
export { SUPPORTED_IMAGE_MODELS, xaiImageModelRef };