7 using System.Collections.Generic;
12 public class ImportModelRequest : KineticaData
16 public const string CREDENTIAL =
"credential";
17 public const string MEMORY_LIMIT =
"memory_limit";
18 public const string REMOTE_MODEL_NAME =
"remote_model_name";
19 public const string REMOTE_MODEL_DIMENSIONS =
"remote_model_dimensions";
20 public const string REMOTE_MODEL_LOCATION =
"remote_model_location";
21 public const string REMOTE_MODEL_PROVIDER_TYPE =
"remote_model_provider_type";
22 public const string NVIDIA =
"nvidia";
23 public const string OPENAI =
"openai";
24 public const string SQLGPT =
"sqlgpt";
25 public const string REMOTE_MODEL_TYPE =
"remote_model_type";
26 public const string EMBEDDING =
"embedding";
29 public string model_name {
get;
set; }
30 public string registry_name {
get;
set; }
31 public string container {
get;
set; }
32 public string run_function {
get;
set; }
33 public string model_type {
get;
set; }
34 public IDictionary<string, string> options {
get;
set; } =
new Dictionary<string, string>();
36 public ImportModelRequest() { }
38 public ImportModelRequest(
string model_name,
43 IDictionary<string, string> options =
null)
45 this.model_name = model_name ??
"";
46 this.registry_name = registry_name ??
"";
47 this.container = container ??
"";
48 this.run_function = run_function ??
"";
49 this.model_type = model_type ??
"";
50 this.options = options ??
new Dictionary<string, string>();
56 public class ImportModelResponse : KineticaData
60 public const string KML_RESPONSE =
"kml_response";
63 public string model_name {
get;
set; }
64 public int entity_id {
get;
set; }
65 public IDictionary<string, string> info {
get;
set; } =
new Dictionary<string, string>();