langcode
Version:
A Plugin-Based Framework for Managing and Using LangChain
18 lines (17 loc) • 507 B
TypeScript
import { OpenAIEmbeddings } from "@langchain/openai";
import { PluginDescriptions } from "./plugin";
export type OpenAIEmbeddingInitConfig = {
apiKey: string;
model?: string;
};
export type OpenAIEmbeddingRunArgs = {
text: string;
};
export interface OpenAIEmbeddingExpose extends PluginDescriptions {
embeddingModel: OpenAIEmbeddings | null;
}
export declare const OpenAIEmbeddingPluginTypes: {
runArgs: OpenAIEmbeddingRunArgs;
return: string;
expose: OpenAIEmbeddingExpose;
};