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_LOCATION =
"remote_model_location";
20 public const string REMOTE_MODEL_PROVIDER_TYPE =
"remote_model_provider_type";
21 public const string NVIDIA =
"nvidia";
22 public const string OPENAI =
"openai";
23 public const string SQLGPT =
"sqlgpt";
24 public const string REMOTE_MODEL_TYPE =
"remote_model_type";
25 public const string EMBEDDING =
"embedding";
28 public string model_name {
get;
set; }
29 public string registry_name {
get;
set; }
30 public string container {
get;
set; }
31 public string run_function {
get;
set; }
32 public string model_type {
get;
set; }
33 public IDictionary<string, string> options {
get;
set; } =
new Dictionary<string, string>();
35 public ImportModelRequest() { }
37 public ImportModelRequest(
string model_name,
42 IDictionary<string, string> options =
null)
44 this.model_name = model_name ??
"";
45 this.registry_name = registry_name ??
"";
46 this.container = container ??
"";
47 this.run_function = run_function ??
"";
48 this.model_type = model_type ??
"";
49 this.options = options ??
new Dictionary<string, string>();
55 public class ImportModelResponse : KineticaData
59 public const string KML_RESPONSE =
"kml_response";
62 public string model_name {
get;
set; }
63 public int entity_id {
get;
set; }
64 public IDictionary<string, string> info {
get;
set; } =
new Dictionary<string, string>();