@akumi/sdk 0.1.1 → 0.2.1
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 +15 -11
- package/dist/index.d.ts +15 -11
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -104,38 +104,40 @@ interface AuditLogApiResource {
|
|
|
104
104
|
ipAddress: string | null;
|
|
105
105
|
userAgent: string | null;
|
|
106
106
|
target: unknown | null;
|
|
107
|
-
metadata: unknown
|
|
108
|
-
createdAt: string;
|
|
107
|
+
metadata: unknown | null;
|
|
108
|
+
createdAt: string | null;
|
|
109
109
|
}
|
|
110
110
|
|
|
111
111
|
interface ChatCompletionsRequest {
|
|
112
112
|
messages: unknown[];
|
|
113
113
|
model?: string;
|
|
114
|
+
models?: string[];
|
|
115
|
+
provider?: unknown;
|
|
114
116
|
temperature?: number | null;
|
|
115
117
|
max_tokens?: number | null;
|
|
116
118
|
stream?: boolean | null;
|
|
119
|
+
stream_options?: unknown;
|
|
117
120
|
firewall?: boolean | null;
|
|
118
|
-
|
|
121
|
+
collection?: string[] | null;
|
|
119
122
|
user?: string | null;
|
|
120
123
|
thread?: string | null;
|
|
124
|
+
tags?: string[] | null;
|
|
125
|
+
name?: string | null;
|
|
121
126
|
top_p?: number | null;
|
|
127
|
+
stop?: string[] | null;
|
|
122
128
|
presence_penalty?: number | null;
|
|
123
129
|
frequency_penalty?: number | null;
|
|
124
130
|
n?: number | null;
|
|
125
131
|
seed?: number | null;
|
|
132
|
+
logit_bias?: number[] | null;
|
|
126
133
|
logprobs?: boolean | null;
|
|
127
134
|
top_logprobs?: number | null;
|
|
128
135
|
max_completion_tokens?: number | null;
|
|
136
|
+
tools?: unknown[] | null;
|
|
129
137
|
tool_choice?: string | null;
|
|
130
138
|
parallel_tool_calls?: boolean | null;
|
|
131
139
|
cache?: boolean | null;
|
|
132
|
-
models?: string[];
|
|
133
|
-
provider?: unknown;
|
|
134
|
-
stream_options?: unknown;
|
|
135
|
-
stop?: string[] | null;
|
|
136
|
-
logit_bias?: number[] | null;
|
|
137
140
|
response_format?: unknown;
|
|
138
|
-
tools?: unknown[] | null;
|
|
139
141
|
}
|
|
140
142
|
|
|
141
143
|
interface EmbeddingsRequest {
|
|
@@ -149,8 +151,8 @@ interface EmbeddingsRequest {
|
|
|
149
151
|
interface IngestDocumentRequest {
|
|
150
152
|
title: string;
|
|
151
153
|
text: string;
|
|
154
|
+
collection: string;
|
|
152
155
|
source?: string | null;
|
|
153
|
-
collection?: string | null;
|
|
154
156
|
}
|
|
155
157
|
|
|
156
158
|
interface RememberFactRequest {
|
|
@@ -160,19 +162,21 @@ interface RememberFactRequest {
|
|
|
160
162
|
|
|
161
163
|
interface SearchDocumentsRequest {
|
|
162
164
|
query: string;
|
|
163
|
-
collection: string;
|
|
165
|
+
collection: string[];
|
|
164
166
|
user_ref?: string | null;
|
|
165
167
|
limit?: number | null;
|
|
166
168
|
}
|
|
167
169
|
|
|
168
170
|
interface SearchFactsRequest {
|
|
169
171
|
query: string;
|
|
172
|
+
collection?: string[] | null;
|
|
170
173
|
user_ref?: string | null;
|
|
171
174
|
limit?: number | null;
|
|
172
175
|
}
|
|
173
176
|
|
|
174
177
|
interface SearchRequest {
|
|
175
178
|
query: string;
|
|
179
|
+
collection?: string[] | null;
|
|
176
180
|
user_ref?: string | null;
|
|
177
181
|
limit?: number | null;
|
|
178
182
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -104,38 +104,40 @@ interface AuditLogApiResource {
|
|
|
104
104
|
ipAddress: string | null;
|
|
105
105
|
userAgent: string | null;
|
|
106
106
|
target: unknown | null;
|
|
107
|
-
metadata: unknown
|
|
108
|
-
createdAt: string;
|
|
107
|
+
metadata: unknown | null;
|
|
108
|
+
createdAt: string | null;
|
|
109
109
|
}
|
|
110
110
|
|
|
111
111
|
interface ChatCompletionsRequest {
|
|
112
112
|
messages: unknown[];
|
|
113
113
|
model?: string;
|
|
114
|
+
models?: string[];
|
|
115
|
+
provider?: unknown;
|
|
114
116
|
temperature?: number | null;
|
|
115
117
|
max_tokens?: number | null;
|
|
116
118
|
stream?: boolean | null;
|
|
119
|
+
stream_options?: unknown;
|
|
117
120
|
firewall?: boolean | null;
|
|
118
|
-
|
|
121
|
+
collection?: string[] | null;
|
|
119
122
|
user?: string | null;
|
|
120
123
|
thread?: string | null;
|
|
124
|
+
tags?: string[] | null;
|
|
125
|
+
name?: string | null;
|
|
121
126
|
top_p?: number | null;
|
|
127
|
+
stop?: string[] | null;
|
|
122
128
|
presence_penalty?: number | null;
|
|
123
129
|
frequency_penalty?: number | null;
|
|
124
130
|
n?: number | null;
|
|
125
131
|
seed?: number | null;
|
|
132
|
+
logit_bias?: number[] | null;
|
|
126
133
|
logprobs?: boolean | null;
|
|
127
134
|
top_logprobs?: number | null;
|
|
128
135
|
max_completion_tokens?: number | null;
|
|
136
|
+
tools?: unknown[] | null;
|
|
129
137
|
tool_choice?: string | null;
|
|
130
138
|
parallel_tool_calls?: boolean | null;
|
|
131
139
|
cache?: boolean | null;
|
|
132
|
-
models?: string[];
|
|
133
|
-
provider?: unknown;
|
|
134
|
-
stream_options?: unknown;
|
|
135
|
-
stop?: string[] | null;
|
|
136
|
-
logit_bias?: number[] | null;
|
|
137
140
|
response_format?: unknown;
|
|
138
|
-
tools?: unknown[] | null;
|
|
139
141
|
}
|
|
140
142
|
|
|
141
143
|
interface EmbeddingsRequest {
|
|
@@ -149,8 +151,8 @@ interface EmbeddingsRequest {
|
|
|
149
151
|
interface IngestDocumentRequest {
|
|
150
152
|
title: string;
|
|
151
153
|
text: string;
|
|
154
|
+
collection: string;
|
|
152
155
|
source?: string | null;
|
|
153
|
-
collection?: string | null;
|
|
154
156
|
}
|
|
155
157
|
|
|
156
158
|
interface RememberFactRequest {
|
|
@@ -160,19 +162,21 @@ interface RememberFactRequest {
|
|
|
160
162
|
|
|
161
163
|
interface SearchDocumentsRequest {
|
|
162
164
|
query: string;
|
|
163
|
-
collection: string;
|
|
165
|
+
collection: string[];
|
|
164
166
|
user_ref?: string | null;
|
|
165
167
|
limit?: number | null;
|
|
166
168
|
}
|
|
167
169
|
|
|
168
170
|
interface SearchFactsRequest {
|
|
169
171
|
query: string;
|
|
172
|
+
collection?: string[] | null;
|
|
170
173
|
user_ref?: string | null;
|
|
171
174
|
limit?: number | null;
|
|
172
175
|
}
|
|
173
176
|
|
|
174
177
|
interface SearchRequest {
|
|
175
178
|
query: string;
|
|
179
|
+
collection?: string[] | null;
|
|
176
180
|
user_ref?: string | null;
|
|
177
181
|
limit?: number | null;
|
|
178
182
|
}
|