@bodhiapp/ts-client 0.1.8 → 0.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1745,19 +1745,7 @@ export interface components {
|
|
|
1745
1745
|
InputAudioFormat: "wav" | "mp3";
|
|
1746
1746
|
ListModelResponse: {
|
|
1747
1747
|
object: string;
|
|
1748
|
-
data:
|
|
1749
|
-
/** @description The model identifier, which can be referenced in the API endpoints. */
|
|
1750
|
-
id: string;
|
|
1751
|
-
/** @description The object type, which is always "model". */
|
|
1752
|
-
object: string;
|
|
1753
|
-
/**
|
|
1754
|
-
* Format: int32
|
|
1755
|
-
* @description The Unix timestamp (in seconds) when the model was created.
|
|
1756
|
-
*/
|
|
1757
|
-
created: number;
|
|
1758
|
-
/** @description The organization that owns the model. */
|
|
1759
|
-
owned_by: string;
|
|
1760
|
-
}[];
|
|
1748
|
+
data: components["schemas"]["Model"][];
|
|
1761
1749
|
};
|
|
1762
1750
|
/** @description List users query parameters */
|
|
1763
1751
|
ListUsersParams: {
|
|
@@ -1787,14 +1775,19 @@ export interface components {
|
|
|
1787
1775
|
content: string;
|
|
1788
1776
|
images?: string[] | null;
|
|
1789
1777
|
};
|
|
1778
|
+
/** @description Describes an OpenAI model offering that can be used with the API. */
|
|
1790
1779
|
Model: {
|
|
1791
|
-
model
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1780
|
+
/** @description The model identifier, which can be referenced in the API endpoints. */
|
|
1781
|
+
id: string;
|
|
1782
|
+
/** @description The object type, which is always "model". */
|
|
1783
|
+
object: string;
|
|
1784
|
+
/**
|
|
1785
|
+
* Format: int32
|
|
1786
|
+
* @description The Unix timestamp (in seconds) when the model was created.
|
|
1787
|
+
*/
|
|
1788
|
+
created: number;
|
|
1789
|
+
/** @description The organization that owns the model. */
|
|
1790
|
+
owned_by: string;
|
|
1798
1791
|
};
|
|
1799
1792
|
ModelAlias: {
|
|
1800
1793
|
alias: string;
|
|
@@ -1811,22 +1804,8 @@ export interface components {
|
|
|
1811
1804
|
parameter_size: string;
|
|
1812
1805
|
quantization_level: string;
|
|
1813
1806
|
};
|
|
1814
|
-
/** @description Describes an OpenAI model offering that can be used with the API. */
|
|
1815
|
-
ModelResponse: {
|
|
1816
|
-
/** @description The model identifier, which can be referenced in the API endpoints. */
|
|
1817
|
-
id: string;
|
|
1818
|
-
/** @description The object type, which is always "model". */
|
|
1819
|
-
object: string;
|
|
1820
|
-
/**
|
|
1821
|
-
* Format: int32
|
|
1822
|
-
* @description The Unix timestamp (in seconds) when the model was created.
|
|
1823
|
-
*/
|
|
1824
|
-
created: number;
|
|
1825
|
-
/** @description The organization that owns the model. */
|
|
1826
|
-
owned_by: string;
|
|
1827
|
-
};
|
|
1828
1807
|
ModelsResponse: {
|
|
1829
|
-
models: components["schemas"]["
|
|
1808
|
+
models: components["schemas"]["OllamaModel"][];
|
|
1830
1809
|
};
|
|
1831
1810
|
/**
|
|
1832
1811
|
* @description Request to pull a model file from HuggingFace
|
|
@@ -1866,6 +1845,15 @@ export interface components {
|
|
|
1866
1845
|
OllamaError: {
|
|
1867
1846
|
error: string;
|
|
1868
1847
|
};
|
|
1848
|
+
OllamaModel: {
|
|
1849
|
+
model: string;
|
|
1850
|
+
/** Format: int32 */
|
|
1851
|
+
modified_at: number;
|
|
1852
|
+
/** Format: int64 */
|
|
1853
|
+
size: number;
|
|
1854
|
+
digest: string;
|
|
1855
|
+
details: components["schemas"]["ModelDetails"];
|
|
1856
|
+
};
|
|
1869
1857
|
/** @example {
|
|
1870
1858
|
* "error": {
|
|
1871
1859
|
* "code": "validation_error",
|
|
@@ -6024,7 +6012,7 @@ export interface operations {
|
|
|
6024
6012
|
* "object": "model",
|
|
6025
6013
|
* "owned_by": "system"
|
|
6026
6014
|
* } */
|
|
6027
|
-
"application/json": components["schemas"]["
|
|
6015
|
+
"application/json": components["schemas"]["Model"];
|
|
6028
6016
|
};
|
|
6029
6017
|
};
|
|
6030
6018
|
/** @description Invalid request parameters */
|
|
@@ -1746,19 +1746,7 @@ export interface components {
|
|
|
1746
1746
|
InputAudioFormat: "wav" | "mp3";
|
|
1747
1747
|
ListModelResponse: {
|
|
1748
1748
|
object: string;
|
|
1749
|
-
data:
|
|
1750
|
-
/** @description The model identifier, which can be referenced in the API endpoints. */
|
|
1751
|
-
id: string;
|
|
1752
|
-
/** @description The object type, which is always "model". */
|
|
1753
|
-
object: string;
|
|
1754
|
-
/**
|
|
1755
|
-
* Format: int32
|
|
1756
|
-
* @description The Unix timestamp (in seconds) when the model was created.
|
|
1757
|
-
*/
|
|
1758
|
-
created: number;
|
|
1759
|
-
/** @description The organization that owns the model. */
|
|
1760
|
-
owned_by: string;
|
|
1761
|
-
}[];
|
|
1749
|
+
data: components["schemas"]["Model"][];
|
|
1762
1750
|
};
|
|
1763
1751
|
/** @description List users query parameters */
|
|
1764
1752
|
ListUsersParams: {
|
|
@@ -1788,14 +1776,19 @@ export interface components {
|
|
|
1788
1776
|
content: string;
|
|
1789
1777
|
images?: string[] | null;
|
|
1790
1778
|
};
|
|
1779
|
+
/** @description Describes an OpenAI model offering that can be used with the API. */
|
|
1791
1780
|
Model: {
|
|
1792
|
-
model
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1781
|
+
/** @description The model identifier, which can be referenced in the API endpoints. */
|
|
1782
|
+
id: string;
|
|
1783
|
+
/** @description The object type, which is always "model". */
|
|
1784
|
+
object: string;
|
|
1785
|
+
/**
|
|
1786
|
+
* Format: int32
|
|
1787
|
+
* @description The Unix timestamp (in seconds) when the model was created.
|
|
1788
|
+
*/
|
|
1789
|
+
created: number;
|
|
1790
|
+
/** @description The organization that owns the model. */
|
|
1791
|
+
owned_by: string;
|
|
1799
1792
|
};
|
|
1800
1793
|
ModelAlias: {
|
|
1801
1794
|
alias: string;
|
|
@@ -1812,22 +1805,8 @@ export interface components {
|
|
|
1812
1805
|
parameter_size: string;
|
|
1813
1806
|
quantization_level: string;
|
|
1814
1807
|
};
|
|
1815
|
-
/** @description Describes an OpenAI model offering that can be used with the API. */
|
|
1816
|
-
ModelResponse: {
|
|
1817
|
-
/** @description The model identifier, which can be referenced in the API endpoints. */
|
|
1818
|
-
id: string;
|
|
1819
|
-
/** @description The object type, which is always "model". */
|
|
1820
|
-
object: string;
|
|
1821
|
-
/**
|
|
1822
|
-
* Format: int32
|
|
1823
|
-
* @description The Unix timestamp (in seconds) when the model was created.
|
|
1824
|
-
*/
|
|
1825
|
-
created: number;
|
|
1826
|
-
/** @description The organization that owns the model. */
|
|
1827
|
-
owned_by: string;
|
|
1828
|
-
};
|
|
1829
1808
|
ModelsResponse: {
|
|
1830
|
-
models: components["schemas"]["
|
|
1809
|
+
models: components["schemas"]["OllamaModel"][];
|
|
1831
1810
|
};
|
|
1832
1811
|
/**
|
|
1833
1812
|
* @description Request to pull a model file from HuggingFace
|
|
@@ -1867,6 +1846,15 @@ export interface components {
|
|
|
1867
1846
|
OllamaError: {
|
|
1868
1847
|
error: string;
|
|
1869
1848
|
};
|
|
1849
|
+
OllamaModel: {
|
|
1850
|
+
model: string;
|
|
1851
|
+
/** Format: int32 */
|
|
1852
|
+
modified_at: number;
|
|
1853
|
+
/** Format: int64 */
|
|
1854
|
+
size: number;
|
|
1855
|
+
digest: string;
|
|
1856
|
+
details: components["schemas"]["ModelDetails"];
|
|
1857
|
+
};
|
|
1870
1858
|
/** @example {
|
|
1871
1859
|
* "error": {
|
|
1872
1860
|
* "code": "validation_error",
|
|
@@ -6025,7 +6013,7 @@ export interface operations {
|
|
|
6025
6013
|
* "object": "model",
|
|
6026
6014
|
* "owned_by": "system"
|
|
6027
6015
|
* } */
|
|
6028
|
-
"application/json": components["schemas"]["
|
|
6016
|
+
"application/json": components["schemas"]["Model"];
|
|
6029
6017
|
};
|
|
6030
6018
|
};
|
|
6031
6019
|
/** @description Invalid request parameters */
|
|
@@ -943,24 +943,7 @@ export type InputAudio = {
|
|
|
943
943
|
export type InputAudioFormat = 'wav' | 'mp3';
|
|
944
944
|
export type ListModelResponse = {
|
|
945
945
|
object: string;
|
|
946
|
-
data: Array<
|
|
947
|
-
/**
|
|
948
|
-
* The model identifier, which can be referenced in the API endpoints.
|
|
949
|
-
*/
|
|
950
|
-
id: string;
|
|
951
|
-
/**
|
|
952
|
-
* The object type, which is always "model".
|
|
953
|
-
*/
|
|
954
|
-
object: string;
|
|
955
|
-
/**
|
|
956
|
-
* The Unix timestamp (in seconds) when the model was created.
|
|
957
|
-
*/
|
|
958
|
-
created: number;
|
|
959
|
-
/**
|
|
960
|
-
* The organization that owns the model.
|
|
961
|
-
*/
|
|
962
|
-
owned_by: string;
|
|
963
|
-
}>;
|
|
946
|
+
data: Array<Model>;
|
|
964
947
|
};
|
|
965
948
|
/**
|
|
966
949
|
* List users query parameters
|
|
@@ -981,31 +964,10 @@ export type Message = {
|
|
|
981
964
|
content: string;
|
|
982
965
|
images?: Array<string> | null;
|
|
983
966
|
};
|
|
984
|
-
export type Model = {
|
|
985
|
-
model: string;
|
|
986
|
-
modified_at: number;
|
|
987
|
-
size: number;
|
|
988
|
-
digest: string;
|
|
989
|
-
details: ModelDetails;
|
|
990
|
-
};
|
|
991
|
-
export type ModelAlias = {
|
|
992
|
-
alias: string;
|
|
993
|
-
repo: string;
|
|
994
|
-
filename: string;
|
|
995
|
-
snapshot: string;
|
|
996
|
-
};
|
|
997
|
-
export type ModelDetails = {
|
|
998
|
-
parent_model?: string | null;
|
|
999
|
-
format: string;
|
|
1000
|
-
family: string;
|
|
1001
|
-
families?: Array<string> | null;
|
|
1002
|
-
parameter_size: string;
|
|
1003
|
-
quantization_level: string;
|
|
1004
|
-
};
|
|
1005
967
|
/**
|
|
1006
968
|
* Describes an OpenAI model offering that can be used with the API.
|
|
1007
969
|
*/
|
|
1008
|
-
export type
|
|
970
|
+
export type Model = {
|
|
1009
971
|
/**
|
|
1010
972
|
* The model identifier, which can be referenced in the API endpoints.
|
|
1011
973
|
*/
|
|
@@ -1023,8 +985,22 @@ export type ModelResponse = {
|
|
|
1023
985
|
*/
|
|
1024
986
|
owned_by: string;
|
|
1025
987
|
};
|
|
988
|
+
export type ModelAlias = {
|
|
989
|
+
alias: string;
|
|
990
|
+
repo: string;
|
|
991
|
+
filename: string;
|
|
992
|
+
snapshot: string;
|
|
993
|
+
};
|
|
994
|
+
export type ModelDetails = {
|
|
995
|
+
parent_model?: string | null;
|
|
996
|
+
format: string;
|
|
997
|
+
family: string;
|
|
998
|
+
families?: Array<string> | null;
|
|
999
|
+
parameter_size: string;
|
|
1000
|
+
quantization_level: string;
|
|
1001
|
+
};
|
|
1026
1002
|
export type ModelsResponse = {
|
|
1027
|
-
models: Array<
|
|
1003
|
+
models: Array<OllamaModel>;
|
|
1028
1004
|
};
|
|
1029
1005
|
/**
|
|
1030
1006
|
* Request to pull a model file from HuggingFace
|
|
@@ -1052,6 +1028,13 @@ export type OaiRequestParams = {
|
|
|
1052
1028
|
export type OllamaError = {
|
|
1053
1029
|
error: string;
|
|
1054
1030
|
};
|
|
1031
|
+
export type OllamaModel = {
|
|
1032
|
+
model: string;
|
|
1033
|
+
modified_at: number;
|
|
1034
|
+
size: number;
|
|
1035
|
+
digest: string;
|
|
1036
|
+
details: ModelDetails;
|
|
1037
|
+
};
|
|
1055
1038
|
export type OpenAiApiError = {
|
|
1056
1039
|
/**
|
|
1057
1040
|
* Error details following OpenAI API error format
|
|
@@ -3386,7 +3369,7 @@ export type GetModelResponses = {
|
|
|
3386
3369
|
/**
|
|
3387
3370
|
* Model details
|
|
3388
3371
|
*/
|
|
3389
|
-
200:
|
|
3372
|
+
200: Model;
|
|
3390
3373
|
};
|
|
3391
3374
|
export type GetModelResponse = GetModelResponses[keyof GetModelResponses];
|
|
3392
3375
|
export type ClientOptions = {
|
package/dist/types/types.gen.ts
CHANGED
|
@@ -1033,24 +1033,7 @@ export type InputAudioFormat = 'wav' | 'mp3';
|
|
|
1033
1033
|
|
|
1034
1034
|
export type ListModelResponse = {
|
|
1035
1035
|
object: string;
|
|
1036
|
-
data: Array<
|
|
1037
|
-
/**
|
|
1038
|
-
* The model identifier, which can be referenced in the API endpoints.
|
|
1039
|
-
*/
|
|
1040
|
-
id: string;
|
|
1041
|
-
/**
|
|
1042
|
-
* The object type, which is always "model".
|
|
1043
|
-
*/
|
|
1044
|
-
object: string;
|
|
1045
|
-
/**
|
|
1046
|
-
* The Unix timestamp (in seconds) when the model was created.
|
|
1047
|
-
*/
|
|
1048
|
-
created: number;
|
|
1049
|
-
/**
|
|
1050
|
-
* The organization that owns the model.
|
|
1051
|
-
*/
|
|
1052
|
-
owned_by: string;
|
|
1053
|
-
}>;
|
|
1036
|
+
data: Array<Model>;
|
|
1054
1037
|
};
|
|
1055
1038
|
|
|
1056
1039
|
/**
|
|
@@ -1075,34 +1058,10 @@ export type Message = {
|
|
|
1075
1058
|
images?: Array<string> | null;
|
|
1076
1059
|
};
|
|
1077
1060
|
|
|
1078
|
-
export type Model = {
|
|
1079
|
-
model: string;
|
|
1080
|
-
modified_at: number;
|
|
1081
|
-
size: number;
|
|
1082
|
-
digest: string;
|
|
1083
|
-
details: ModelDetails;
|
|
1084
|
-
};
|
|
1085
|
-
|
|
1086
|
-
export type ModelAlias = {
|
|
1087
|
-
alias: string;
|
|
1088
|
-
repo: string;
|
|
1089
|
-
filename: string;
|
|
1090
|
-
snapshot: string;
|
|
1091
|
-
};
|
|
1092
|
-
|
|
1093
|
-
export type ModelDetails = {
|
|
1094
|
-
parent_model?: string | null;
|
|
1095
|
-
format: string;
|
|
1096
|
-
family: string;
|
|
1097
|
-
families?: Array<string> | null;
|
|
1098
|
-
parameter_size: string;
|
|
1099
|
-
quantization_level: string;
|
|
1100
|
-
};
|
|
1101
|
-
|
|
1102
1061
|
/**
|
|
1103
1062
|
* Describes an OpenAI model offering that can be used with the API.
|
|
1104
1063
|
*/
|
|
1105
|
-
export type
|
|
1064
|
+
export type Model = {
|
|
1106
1065
|
/**
|
|
1107
1066
|
* The model identifier, which can be referenced in the API endpoints.
|
|
1108
1067
|
*/
|
|
@@ -1121,8 +1080,24 @@ export type ModelResponse = {
|
|
|
1121
1080
|
owned_by: string;
|
|
1122
1081
|
};
|
|
1123
1082
|
|
|
1083
|
+
export type ModelAlias = {
|
|
1084
|
+
alias: string;
|
|
1085
|
+
repo: string;
|
|
1086
|
+
filename: string;
|
|
1087
|
+
snapshot: string;
|
|
1088
|
+
};
|
|
1089
|
+
|
|
1090
|
+
export type ModelDetails = {
|
|
1091
|
+
parent_model?: string | null;
|
|
1092
|
+
format: string;
|
|
1093
|
+
family: string;
|
|
1094
|
+
families?: Array<string> | null;
|
|
1095
|
+
parameter_size: string;
|
|
1096
|
+
quantization_level: string;
|
|
1097
|
+
};
|
|
1098
|
+
|
|
1124
1099
|
export type ModelsResponse = {
|
|
1125
|
-
models: Array<
|
|
1100
|
+
models: Array<OllamaModel>;
|
|
1126
1101
|
};
|
|
1127
1102
|
|
|
1128
1103
|
/**
|
|
@@ -1154,6 +1129,14 @@ export type OllamaError = {
|
|
|
1154
1129
|
error: string;
|
|
1155
1130
|
};
|
|
1156
1131
|
|
|
1132
|
+
export type OllamaModel = {
|
|
1133
|
+
model: string;
|
|
1134
|
+
modified_at: number;
|
|
1135
|
+
size: number;
|
|
1136
|
+
digest: string;
|
|
1137
|
+
details: ModelDetails;
|
|
1138
|
+
};
|
|
1139
|
+
|
|
1157
1140
|
export type OpenAiApiError = {
|
|
1158
1141
|
/**
|
|
1159
1142
|
* Error details following OpenAI API error format
|
|
@@ -3775,7 +3758,7 @@ export type GetModelResponses = {
|
|
|
3775
3758
|
/**
|
|
3776
3759
|
* Model details
|
|
3777
3760
|
*/
|
|
3778
|
-
200:
|
|
3761
|
+
200: Model;
|
|
3779
3762
|
};
|
|
3780
3763
|
|
|
3781
3764
|
export type GetModelResponse = GetModelResponses[keyof GetModelResponses];
|