@supabase/functions-js 2.4.1 → 2.4.3
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/dist/main/version.d.ts +1 -1
- package/dist/main/version.js +1 -1
- package/dist/module/version.d.ts +1 -1
- package/dist/module/version.js +1 -1
- package/package.json +2 -2
- package/src/edge-runtime.d.ts +12 -1
- package/src/version.ts +1 -1
package/dist/main/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const version = "2.4.
|
|
1
|
+
export declare const version = "2.4.3";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/dist/main/version.js
CHANGED
package/dist/module/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const version = "2.4.
|
|
1
|
+
export declare const version = "2.4.3";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/dist/module/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const version = '2.4.
|
|
1
|
+
export const version = '2.4.3';
|
|
2
2
|
//# sourceMappingURL=version.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@supabase/functions-js",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.3",
|
|
4
4
|
"description": "JS Client library to interact with Supabase Functions.",
|
|
5
5
|
"main": "dist/main/index.js",
|
|
6
6
|
"module": "dist/module/index.js",
|
|
@@ -48,9 +48,9 @@
|
|
|
48
48
|
"jsonwebtoken": "^9.0.0",
|
|
49
49
|
"nanoid": "^3.3.1",
|
|
50
50
|
"npm-run-all": "^4.1.5",
|
|
51
|
+
"openai": "^4.52.5",
|
|
51
52
|
"prettier": "^2.6.0",
|
|
52
53
|
"rimraf": "^3.0.2",
|
|
53
|
-
"semantic-release": "^19.0.2",
|
|
54
54
|
"semantic-release-plugin-update-version-in-files": "^1.1.0",
|
|
55
55
|
"testcontainers": "^8.5.1",
|
|
56
56
|
"ts-jest": "^28.0.0",
|
package/src/edge-runtime.d.ts
CHANGED
|
@@ -19,6 +19,12 @@ declare namespace Supabase {
|
|
|
19
19
|
* Automatically abort the request to the model after specified time (in seconds). Applies only for LLMs like `mistral` (default: 60)
|
|
20
20
|
*/
|
|
21
21
|
timeout?: number
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Mode for the inference API host. (default: 'ollama')
|
|
25
|
+
*/
|
|
26
|
+
mode?: 'ollama' | 'openaicompatible'
|
|
27
|
+
signal?: AbortSignal
|
|
22
28
|
}
|
|
23
29
|
|
|
24
30
|
export class Session {
|
|
@@ -30,7 +36,12 @@ declare namespace Supabase {
|
|
|
30
36
|
/**
|
|
31
37
|
* Execute the given prompt in model session
|
|
32
38
|
*/
|
|
33
|
-
run(
|
|
39
|
+
run(
|
|
40
|
+
prompt:
|
|
41
|
+
| string
|
|
42
|
+
| Omit<import('openai').OpenAI.Chat.ChatCompletionCreateParams, 'model' | 'stream'>,
|
|
43
|
+
modelOptions?: ModelOptions
|
|
44
|
+
): unknown
|
|
34
45
|
}
|
|
35
46
|
|
|
36
47
|
/**
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '2.4.
|
|
1
|
+
export const version = '2.4.3'
|