geniebox-shared-lib 1.0.49 → 1.0.50
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.
|
@@ -3,17 +3,11 @@ import type { handleUnaryCall, Metadata, UntypedServiceImplementation } from "@g
|
|
|
3
3
|
import { Observable } from "rxjs";
|
|
4
4
|
export declare const protobufPackage = "openai";
|
|
5
5
|
export interface CreateRequest {
|
|
6
|
-
body
|
|
7
|
-
|
|
8
|
-
} | undefined;
|
|
9
|
-
options?: {
|
|
10
|
-
[key: string]: any;
|
|
11
|
-
} | undefined;
|
|
6
|
+
body: string;
|
|
7
|
+
options: string;
|
|
12
8
|
}
|
|
13
9
|
export interface CreateResponse {
|
|
14
|
-
data
|
|
15
|
-
[key: string]: any;
|
|
16
|
-
} | undefined;
|
|
10
|
+
data: string;
|
|
17
11
|
}
|
|
18
12
|
export declare const OPENAI_PACKAGE_NAME = "openai";
|
|
19
13
|
export declare const CreateRequest: MessageFns<CreateRequest>;
|
|
@@ -10,20 +10,18 @@ exports.OpenAIServiceControllerMethods = OpenAIServiceControllerMethods;
|
|
|
10
10
|
/* eslint-disable */
|
|
11
11
|
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
12
12
|
const microservices_1 = require("@nestjs/microservices");
|
|
13
|
-
const protobufjs_1 = require("protobufjs");
|
|
14
|
-
const struct_interface_1 = require("./google/protobuf/struct.interface");
|
|
15
13
|
exports.protobufPackage = "openai";
|
|
16
14
|
exports.OPENAI_PACKAGE_NAME = "openai";
|
|
17
15
|
function createBaseCreateRequest() {
|
|
18
|
-
return {};
|
|
16
|
+
return { body: "", options: "" };
|
|
19
17
|
}
|
|
20
18
|
exports.CreateRequest = {
|
|
21
19
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
22
|
-
if (message.body !==
|
|
23
|
-
|
|
20
|
+
if (message.body !== "") {
|
|
21
|
+
writer.uint32(10).string(message.body);
|
|
24
22
|
}
|
|
25
|
-
if (message.options !==
|
|
26
|
-
|
|
23
|
+
if (message.options !== "") {
|
|
24
|
+
writer.uint32(18).string(message.options);
|
|
27
25
|
}
|
|
28
26
|
return writer;
|
|
29
27
|
},
|
|
@@ -38,14 +36,14 @@ exports.CreateRequest = {
|
|
|
38
36
|
if (tag !== 10) {
|
|
39
37
|
break;
|
|
40
38
|
}
|
|
41
|
-
message.body =
|
|
39
|
+
message.body = reader.string();
|
|
42
40
|
continue;
|
|
43
41
|
}
|
|
44
42
|
case 2: {
|
|
45
43
|
if (tag !== 18) {
|
|
46
44
|
break;
|
|
47
45
|
}
|
|
48
|
-
message.options =
|
|
46
|
+
message.options = reader.string();
|
|
49
47
|
continue;
|
|
50
48
|
}
|
|
51
49
|
}
|
|
@@ -58,12 +56,12 @@ exports.CreateRequest = {
|
|
|
58
56
|
},
|
|
59
57
|
};
|
|
60
58
|
function createBaseCreateResponse() {
|
|
61
|
-
return {};
|
|
59
|
+
return { data: "" };
|
|
62
60
|
}
|
|
63
61
|
exports.CreateResponse = {
|
|
64
62
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
65
|
-
if (message.data !==
|
|
66
|
-
|
|
63
|
+
if (message.data !== "") {
|
|
64
|
+
writer.uint32(10).string(message.data);
|
|
67
65
|
}
|
|
68
66
|
return writer;
|
|
69
67
|
},
|
|
@@ -78,7 +76,7 @@ exports.CreateResponse = {
|
|
|
78
76
|
if (tag !== 10) {
|
|
79
77
|
break;
|
|
80
78
|
}
|
|
81
|
-
message.data =
|
|
79
|
+
message.data = reader.string();
|
|
82
80
|
continue;
|
|
83
81
|
}
|
|
84
82
|
}
|
|
@@ -90,7 +88,6 @@ exports.CreateResponse = {
|
|
|
90
88
|
return message;
|
|
91
89
|
},
|
|
92
90
|
};
|
|
93
|
-
protobufjs_1.wrappers[".google.protobuf.Struct"] = { fromObject: struct_interface_1.Struct.wrap, toObject: struct_interface_1.Struct.unwrap };
|
|
94
91
|
function OpenAIServiceControllerMethods() {
|
|
95
92
|
return function (constructor) {
|
|
96
93
|
const grpcMethods = ["create"];
|