@nu-art/ts-openai-shared 0.401.9 → 0.500.0
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.
- package/api-def.d.ts +7 -8
- package/api-def.js +2 -4
- package/package.json +3 -3
package/api-def.d.ts
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import { ApiDefResolver, BodyApi } from '@nu-art/
|
|
1
|
+
import { ApiDefResolver, BodyApi } from '@nu-art/api-types';
|
|
2
2
|
import { GPT_Model } from './types.js';
|
|
3
3
|
export type Request_ChatGPT = {
|
|
4
4
|
directive: string;
|
|
5
5
|
message: string;
|
|
6
6
|
model?: GPT_Model;
|
|
7
7
|
};
|
|
8
|
-
export type
|
|
9
|
-
|
|
10
|
-
test: BodyApi<{
|
|
11
|
-
response: string;
|
|
12
|
-
}, Request_ChatGPT>;
|
|
13
|
-
};
|
|
8
|
+
export type Response_ChatGPT_Test = {
|
|
9
|
+
response: string;
|
|
14
10
|
};
|
|
15
|
-
export
|
|
11
|
+
export type API_OpenAI = {
|
|
12
|
+
test: BodyApi<Response_ChatGPT_Test, Request_ChatGPT>;
|
|
13
|
+
};
|
|
14
|
+
export declare const ApiDef_OpenAI: ApiDefResolver<API_OpenAI>;
|
package/api-def.js
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { HttpMethod } from '@nu-art/
|
|
1
|
+
import { HttpMethod } from '@nu-art/api-types';
|
|
2
2
|
import { Minute } from '@nu-art/ts-common';
|
|
3
3
|
export const ApiDef_OpenAI = {
|
|
4
|
-
v1:
|
|
5
|
-
test: { method: HttpMethod.POST, path: 'v1/open-ai/test', timeout: Minute },
|
|
6
|
-
}
|
|
4
|
+
test: { method: HttpMethod.POST, path: '/v1/open-ai/test', timeout: Minute },
|
|
7
5
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nu-art/ts-openai-shared",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.500.0",
|
|
4
4
|
"description": "ts-openai - Express & Typescript based backend framework",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"TacB0sS",
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
"build": "tsc"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@nu-art/
|
|
35
|
-
"@nu-art/
|
|
34
|
+
"@nu-art/api-types": "{{THUNDERSTORM_VERSION}}",
|
|
35
|
+
"@nu-art/ts-common": "0.500.0",
|
|
36
36
|
"openai": "^6.7.0",
|
|
37
37
|
"firebase": "^11.9.0",
|
|
38
38
|
"firebase-admin": "13.4.0",
|