@xsai/shared-chat 0.4.0-beta.3 → 0.4.0-beta.5
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/index.d.ts +2 -3
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CommonRequestOptions } from '@xsai/shared';
|
|
1
|
+
import { WithUnknown, CommonRequestOptions } from '@xsai/shared';
|
|
2
2
|
|
|
3
3
|
type FinishReason = 'content_filter' | 'error' | 'length' | 'other' | 'stop' | 'tool-calls' | (string & {});
|
|
4
4
|
|
|
@@ -139,7 +139,6 @@ interface ToolChoiceTool {
|
|
|
139
139
|
|
|
140
140
|
/** @see {@link https://platform.openai.com/docs/api-reference/chat/create} */
|
|
141
141
|
interface ChatOptions extends CommonRequestOptions {
|
|
142
|
-
[key: string]: unknown;
|
|
143
142
|
/**
|
|
144
143
|
* number between -2.0 and 2.0.
|
|
145
144
|
* @default 0
|
|
@@ -164,7 +163,7 @@ interface ChatOptions extends CommonRequestOptions {
|
|
|
164
163
|
/** @default 1 */
|
|
165
164
|
topP?: number;
|
|
166
165
|
}
|
|
167
|
-
declare const chat: <T extends ChatOptions
|
|
166
|
+
declare const chat: <T extends WithUnknown<ChatOptions>>(options: T) => Promise<Response>;
|
|
168
167
|
|
|
169
168
|
interface DetermineStepTypeOptions {
|
|
170
169
|
finishReason: FinishReason;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xsai/shared-chat",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.4.0-beta.
|
|
4
|
+
"version": "0.4.0-beta.5",
|
|
5
5
|
"description": "extra-small AI SDK.",
|
|
6
6
|
"author": "Moeru AI",
|
|
7
7
|
"license": "MIT",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"dist"
|
|
30
30
|
],
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@xsai/shared": "~0.4.0-beta.
|
|
32
|
+
"@xsai/shared": "~0.4.0-beta.5"
|
|
33
33
|
},
|
|
34
34
|
"scripts": {
|
|
35
35
|
"build": "pkgroll"
|