UNPKG

@llumiverse/common

Version:

Public types, enums and options used by Llumiverse API.

175 lines 5.96 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.TrainingJobStatus = exports.ModelType = exports.AIModelStatus = exports.Modalities = exports.PromptRole = exports.OptionType = exports.SharedOptions = exports.ProviderList = exports.Providers = void 0; // ============== Provider details =============== var Providers; (function (Providers) { Providers["openai"] = "openai"; Providers["azure_openai"] = "azure_openai"; Providers["azure_foundry"] = "azure_foundry"; Providers["huggingface_ie"] = "huggingface_ie"; Providers["replicate"] = "replicate"; Providers["bedrock"] = "bedrock"; Providers["vertexai"] = "vertexai"; Providers["togetherai"] = "togetherai"; Providers["mistralai"] = "mistralai"; Providers["groq"] = "groq"; Providers["watsonx"] = "watsonx"; })(Providers || (exports.Providers = Providers = {})); exports.ProviderList = { openai: { id: Providers.openai, name: "OpenAI", requiresApiKey: true, requiresEndpointUrl: false, supportSearch: false, }, azure_openai: { id: Providers.azure_openai, name: "Azure OpenAI", requiresApiKey: false, requiresEndpointUrl: true, supportSearch: false, }, azure_foundry: { id: Providers.azure_foundry, name: "Azure Foundry", requiresApiKey: true, requiresEndpointUrl: true, supportSearch: false, }, huggingface_ie: { id: Providers.huggingface_ie, name: "HuggingFace Inference Endpoint", requiresApiKey: true, requiresEndpointUrl: true, }, replicate: { id: Providers.replicate, name: "Replicate", requiresApiKey: true, requiresEndpointUrl: false, supportSearch: true, }, bedrock: { id: Providers.bedrock, name: "AWS Bedrock", requiresApiKey: false, requiresEndpointUrl: false, endpointPlaceholder: "region name (eg. us-east-1)", supportSearch: false, }, vertexai: { id: Providers.vertexai, name: "Google Vertex AI", requiresApiKey: false, requiresEndpointUrl: false, supportSearch: false, }, togetherai: { id: Providers.togetherai, name: "Together AI", requiresApiKey: false, requiresEndpointUrl: false, supportSearch: false, }, mistralai: { id: Providers.mistralai, name: "Mistral AI", requiresApiKey: false, requiresEndpointUrl: false, supportSearch: false, }, groq: { id: Providers.groq, name: "Groq Cloud", requiresApiKey: false, requiresEndpointUrl: false, supportSearch: false, }, watsonx: { id: Providers.watsonx, name: "IBM WatsonX", requiresApiKey: true, requiresEndpointUrl: true, supportSearch: false }, }; //Common names to share between different models var SharedOptions; (function (SharedOptions) { //Text SharedOptions["max_tokens"] = "max_tokens"; SharedOptions["temperature"] = "temperature"; SharedOptions["top_p"] = "top_p"; SharedOptions["top_k"] = "top_k"; SharedOptions["presence_penalty"] = "presence_penalty"; SharedOptions["frequency_penalty"] = "frequency_penalty"; SharedOptions["stop_sequence"] = "stop_sequence"; //Image SharedOptions["seed"] = "seed"; SharedOptions["number_of_images"] = "number_of_images"; })(SharedOptions || (exports.SharedOptions = SharedOptions = {})); var OptionType; (function (OptionType) { OptionType["numeric"] = "numeric"; OptionType["enum"] = "enum"; OptionType["boolean"] = "boolean"; OptionType["string_list"] = "string_list"; })(OptionType || (exports.OptionType = OptionType = {})); // ============== Prompts =============== var PromptRole; (function (PromptRole) { PromptRole["safety"] = "safety"; PromptRole["system"] = "system"; PromptRole["user"] = "user"; PromptRole["assistant"] = "assistant"; PromptRole["negative"] = "negative"; PromptRole["mask"] = "mask"; /** * Used to send the response of a tool */ PromptRole["tool"] = "tool"; })(PromptRole || (exports.PromptRole = PromptRole = {})); var Modalities; (function (Modalities) { Modalities["text"] = "text"; Modalities["image"] = "image"; })(Modalities || (exports.Modalities = Modalities = {})); var AIModelStatus; (function (AIModelStatus) { AIModelStatus["Available"] = "available"; AIModelStatus["Pending"] = "pending"; AIModelStatus["Stopped"] = "stopped"; AIModelStatus["Unavailable"] = "unavailable"; AIModelStatus["Unknown"] = "unknown"; AIModelStatus["Legacy"] = "legacy"; })(AIModelStatus || (exports.AIModelStatus = AIModelStatus = {})); var ModelType; (function (ModelType) { ModelType["Classifier"] = "classifier"; ModelType["Regressor"] = "regressor"; ModelType["Clustering"] = "clustering"; ModelType["AnomalyDetection"] = "anomaly-detection"; ModelType["TimeSeries"] = "time-series"; ModelType["Text"] = "text"; ModelType["Image"] = "image"; ModelType["Audio"] = "audio"; ModelType["Video"] = "video"; ModelType["Embedding"] = "embedding"; ModelType["Chat"] = "chat"; ModelType["Code"] = "code"; ModelType["NLP"] = "nlp"; ModelType["MultiModal"] = "multi-modal"; ModelType["Test"] = "test"; ModelType["Other"] = "other"; ModelType["Unknown"] = "unknown"; })(ModelType || (exports.ModelType = ModelType = {})); var TrainingJobStatus; (function (TrainingJobStatus) { TrainingJobStatus["running"] = "running"; TrainingJobStatus["succeeded"] = "succeeded"; TrainingJobStatus["failed"] = "failed"; TrainingJobStatus["cancelled"] = "cancelled"; })(TrainingJobStatus || (exports.TrainingJobStatus = TrainingJobStatus = {})); //# sourceMappingURL=types.js.map