@akumi/sdk 0.1.0 → 0.2.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/dist/index.d.cts +9 -4
- package/dist/index.d.ts +9 -4
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -109,13 +109,12 @@ interface AuditLogApiResource {
|
|
|
109
109
|
}
|
|
110
110
|
|
|
111
111
|
interface ChatCompletionsRequest {
|
|
112
|
-
model: string;
|
|
113
112
|
messages: unknown[];
|
|
113
|
+
model?: string;
|
|
114
114
|
temperature?: number | null;
|
|
115
115
|
max_tokens?: number | null;
|
|
116
116
|
stream?: boolean | null;
|
|
117
117
|
firewall?: boolean | null;
|
|
118
|
-
rag?: string | null;
|
|
119
118
|
user?: string | null;
|
|
120
119
|
thread?: string | null;
|
|
121
120
|
top_p?: number | null;
|
|
@@ -129,6 +128,10 @@ interface ChatCompletionsRequest {
|
|
|
129
128
|
tool_choice?: string | null;
|
|
130
129
|
parallel_tool_calls?: boolean | null;
|
|
131
130
|
cache?: boolean | null;
|
|
131
|
+
models?: string[];
|
|
132
|
+
provider?: unknown;
|
|
133
|
+
stream_options?: unknown;
|
|
134
|
+
collection?: string[] | null;
|
|
132
135
|
stop?: string[] | null;
|
|
133
136
|
logit_bias?: number[] | null;
|
|
134
137
|
response_format?: unknown;
|
|
@@ -146,8 +149,8 @@ interface EmbeddingsRequest {
|
|
|
146
149
|
interface IngestDocumentRequest {
|
|
147
150
|
title: string;
|
|
148
151
|
text: string;
|
|
152
|
+
collection: string;
|
|
149
153
|
source?: string | null;
|
|
150
|
-
collection?: string | null;
|
|
151
154
|
}
|
|
152
155
|
|
|
153
156
|
interface RememberFactRequest {
|
|
@@ -157,7 +160,7 @@ interface RememberFactRequest {
|
|
|
157
160
|
|
|
158
161
|
interface SearchDocumentsRequest {
|
|
159
162
|
query: string;
|
|
160
|
-
collection: string;
|
|
163
|
+
collection: string[];
|
|
161
164
|
user_ref?: string | null;
|
|
162
165
|
limit?: number | null;
|
|
163
166
|
}
|
|
@@ -166,12 +169,14 @@ interface SearchFactsRequest {
|
|
|
166
169
|
query: string;
|
|
167
170
|
user_ref?: string | null;
|
|
168
171
|
limit?: number | null;
|
|
172
|
+
collection?: string[] | null;
|
|
169
173
|
}
|
|
170
174
|
|
|
171
175
|
interface SearchRequest {
|
|
172
176
|
query: string;
|
|
173
177
|
user_ref?: string | null;
|
|
174
178
|
limit?: number | null;
|
|
179
|
+
collection?: string[] | null;
|
|
175
180
|
}
|
|
176
181
|
|
|
177
182
|
interface StoreCollectionRequest {
|
package/dist/index.d.ts
CHANGED
|
@@ -109,13 +109,12 @@ interface AuditLogApiResource {
|
|
|
109
109
|
}
|
|
110
110
|
|
|
111
111
|
interface ChatCompletionsRequest {
|
|
112
|
-
model: string;
|
|
113
112
|
messages: unknown[];
|
|
113
|
+
model?: string;
|
|
114
114
|
temperature?: number | null;
|
|
115
115
|
max_tokens?: number | null;
|
|
116
116
|
stream?: boolean | null;
|
|
117
117
|
firewall?: boolean | null;
|
|
118
|
-
rag?: string | null;
|
|
119
118
|
user?: string | null;
|
|
120
119
|
thread?: string | null;
|
|
121
120
|
top_p?: number | null;
|
|
@@ -129,6 +128,10 @@ interface ChatCompletionsRequest {
|
|
|
129
128
|
tool_choice?: string | null;
|
|
130
129
|
parallel_tool_calls?: boolean | null;
|
|
131
130
|
cache?: boolean | null;
|
|
131
|
+
models?: string[];
|
|
132
|
+
provider?: unknown;
|
|
133
|
+
stream_options?: unknown;
|
|
134
|
+
collection?: string[] | null;
|
|
132
135
|
stop?: string[] | null;
|
|
133
136
|
logit_bias?: number[] | null;
|
|
134
137
|
response_format?: unknown;
|
|
@@ -146,8 +149,8 @@ interface EmbeddingsRequest {
|
|
|
146
149
|
interface IngestDocumentRequest {
|
|
147
150
|
title: string;
|
|
148
151
|
text: string;
|
|
152
|
+
collection: string;
|
|
149
153
|
source?: string | null;
|
|
150
|
-
collection?: string | null;
|
|
151
154
|
}
|
|
152
155
|
|
|
153
156
|
interface RememberFactRequest {
|
|
@@ -157,7 +160,7 @@ interface RememberFactRequest {
|
|
|
157
160
|
|
|
158
161
|
interface SearchDocumentsRequest {
|
|
159
162
|
query: string;
|
|
160
|
-
collection: string;
|
|
163
|
+
collection: string[];
|
|
161
164
|
user_ref?: string | null;
|
|
162
165
|
limit?: number | null;
|
|
163
166
|
}
|
|
@@ -166,12 +169,14 @@ interface SearchFactsRequest {
|
|
|
166
169
|
query: string;
|
|
167
170
|
user_ref?: string | null;
|
|
168
171
|
limit?: number | null;
|
|
172
|
+
collection?: string[] | null;
|
|
169
173
|
}
|
|
170
174
|
|
|
171
175
|
interface SearchRequest {
|
|
172
176
|
query: string;
|
|
173
177
|
user_ref?: string | null;
|
|
174
178
|
limit?: number | null;
|
|
179
|
+
collection?: string[] | null;
|
|
175
180
|
}
|
|
176
181
|
|
|
177
182
|
interface StoreCollectionRequest {
|