@distilled.cloud/typesense 0.18.1 → 0.19.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/lib/index.d.ts +1 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -0
- package/lib/index.js.map +1 -1
- package/lib/operations/createConversationModel.d.ts +22 -2
- package/lib/operations/createConversationModel.d.ts.map +1 -1
- package/lib/operations/createConversationModel.js +12 -1
- package/lib/operations/createConversationModel.js.map +1 -1
- package/lib/operations/createNLSearchModel.d.ts +42 -2
- package/lib/operations/createNLSearchModel.d.ts.map +1 -1
- package/lib/operations/createNLSearchModel.js +22 -1
- package/lib/operations/createNLSearchModel.js.map +1 -1
- package/package.json +2 -2
- package/src/index.ts +1 -0
- package/src/operations/createConversationModel.ts +12 -3
- package/src/operations/createNLSearchModel.ts +22 -3
package/lib/index.d.ts
CHANGED
|
@@ -12,5 +12,6 @@ export * as T from "./traits.ts";
|
|
|
12
12
|
export * as Retry from "./retry.ts";
|
|
13
13
|
export { API } from "./client.ts";
|
|
14
14
|
export * from "./errors.ts";
|
|
15
|
+
export * from "./operations/index.ts";
|
|
15
16
|
export { SensitiveString, SensitiveNullableString } from "./sensitive.ts";
|
|
16
17
|
//# sourceMappingURL=index.d.ts.map
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,cAAc,kBAAkB,CAAC;AACjC,OAAO,KAAK,QAAQ,MAAM,eAAe,CAAC;AAC1C,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,KAAK,KAAK,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,OAAO,EAAE,eAAe,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,cAAc,kBAAkB,CAAC;AACjC,OAAO,KAAK,QAAQ,MAAM,eAAe,CAAC;AAC1C,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,KAAK,KAAK,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,uBAAuB,CAAC;AACtC,OAAO,EAAE,eAAe,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC"}
|
package/lib/index.js
CHANGED
|
@@ -12,5 +12,6 @@ export * as T from "./traits.js";
|
|
|
12
12
|
export * as Retry from "./retry.js";
|
|
13
13
|
export { API } from "./client.js";
|
|
14
14
|
export * from "./errors.js";
|
|
15
|
+
export * from "./operations/index.js";
|
|
15
16
|
export { SensitiveString, SensitiveNullableString } from "./sensitive.js";
|
|
16
17
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,cAAc,kBAAkB,CAAC;AACjC,OAAO,KAAK,QAAQ,MAAM,eAAe,CAAC;AAC1C,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,KAAK,KAAK,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,OAAO,EAAE,eAAe,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,cAAc,kBAAkB,CAAC;AACjC,OAAO,KAAK,QAAQ,MAAM,eAAe,CAAC;AAC1C,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,KAAK,KAAK,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,uBAAuB,CAAC;AACtC,OAAO,EAAE,eAAe,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
import * as Schema from "effect/Schema";
|
|
2
2
|
import { BadRequest } from "../errors.ts";
|
|
3
|
-
export declare const CreateConversationModelInput: Schema.Struct<{
|
|
3
|
+
export declare const CreateConversationModelInput: Schema.Struct<{
|
|
4
|
+
readonly id: Schema.optional<Schema.String>;
|
|
5
|
+
readonly model_name: Schema.String;
|
|
6
|
+
readonly api_key: Schema.optional<Schema.Schema<string | import("effect/Redacted").Redacted<string>>>;
|
|
7
|
+
readonly history_collection: Schema.String;
|
|
8
|
+
readonly account_id: Schema.optional<Schema.String>;
|
|
9
|
+
readonly system_prompt: Schema.optional<Schema.String>;
|
|
10
|
+
readonly ttl: Schema.optional<Schema.Number>;
|
|
11
|
+
readonly max_bytes: Schema.Number;
|
|
12
|
+
readonly vllm_url: Schema.optional<Schema.String>;
|
|
13
|
+
}>;
|
|
4
14
|
export type CreateConversationModelInput = typeof CreateConversationModelInput.Type;
|
|
5
15
|
export declare const CreateConversationModelOutput: Schema.Struct<{
|
|
6
16
|
readonly id: Schema.String;
|
|
@@ -11,7 +21,17 @@ export type CreateConversationModelOutput = typeof CreateConversationModelOutput
|
|
|
11
21
|
*
|
|
12
22
|
* Create a Conversation Model
|
|
13
23
|
*/
|
|
14
|
-
export declare const createConversationModel: import("@distilled.cloud/core/client").OperationMethod<{
|
|
24
|
+
export declare const createConversationModel: import("@distilled.cloud/core/client").OperationMethod<{
|
|
25
|
+
readonly account_id?: string | undefined;
|
|
26
|
+
readonly api_key?: string | import("effect/Redacted").Redacted<string> | undefined;
|
|
27
|
+
readonly history_collection: string;
|
|
28
|
+
readonly id?: string | undefined;
|
|
29
|
+
readonly max_bytes: number;
|
|
30
|
+
readonly model_name: string;
|
|
31
|
+
readonly system_prompt?: string | undefined;
|
|
32
|
+
readonly ttl?: number | undefined;
|
|
33
|
+
readonly vllm_url?: string | undefined;
|
|
34
|
+
}, {
|
|
15
35
|
readonly id: string;
|
|
16
36
|
}, BadRequest, import("~/credentials.ts").Credentials>;
|
|
17
37
|
//# sourceMappingURL=createConversationModel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createConversationModel.d.ts","sourceRoot":"","sources":["../../src/operations/createConversationModel.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"createConversationModel.d.ts","sourceRoot":"","sources":["../../src/operations/createConversationModel.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAI1C,eAAO,MAAM,4BAA4B;;;;;;;;;;EAW2B,CAAC;AACrE,MAAM,MAAM,4BAA4B,GACtC,OAAO,4BAA4B,CAAC,IAAI,CAAC;AAG3C,eAAO,MAAM,6BAA6B;;EAGtC,CAAC;AACL,MAAM,MAAM,6BAA6B,GACvC,OAAO,6BAA6B,CAAC,IAAI,CAAC;AAG5C;;;;GAIG;AACH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;sDAMnC,CAAC"}
|
|
@@ -2,9 +2,20 @@ import * as Schema from "effect/Schema";
|
|
|
2
2
|
import { API } from "../client.js";
|
|
3
3
|
import * as T from "../traits.js";
|
|
4
4
|
import { BadRequest } from "../errors.js";
|
|
5
|
+
import { SensitiveString } from "../sensitive.js";
|
|
5
6
|
// Input Schema
|
|
6
7
|
export const CreateConversationModelInput =
|
|
7
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
9
|
+
id: Schema.optional(Schema.String),
|
|
10
|
+
model_name: Schema.String,
|
|
11
|
+
api_key: Schema.optional(SensitiveString),
|
|
12
|
+
history_collection: Schema.String,
|
|
13
|
+
account_id: Schema.optional(Schema.String),
|
|
14
|
+
system_prompt: Schema.optional(Schema.String),
|
|
15
|
+
ttl: Schema.optional(Schema.Number),
|
|
16
|
+
max_bytes: Schema.Number,
|
|
17
|
+
vllm_url: Schema.optional(Schema.String),
|
|
18
|
+
}).pipe(T.Http({ method: "POST", path: "/conversations/models" }));
|
|
8
19
|
// Output Schema
|
|
9
20
|
export const CreateConversationModelOutput =
|
|
10
21
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createConversationModel.js","sourceRoot":"","sources":["../../src/operations/createConversationModel.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACnC,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"createConversationModel.js","sourceRoot":"","sources":["../../src/operations/createConversationModel.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACnC,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAElD,eAAe;AACf,MAAM,CAAC,MAAM,4BAA4B;AACvC,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,EAAE,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IAClC,UAAU,EAAE,MAAM,CAAC,MAAM;IACzB,OAAO,EAAE,MAAM,CAAC,QAAQ,CAAC,eAAe,CAAC;IACzC,kBAAkB,EAAE,MAAM,CAAC,MAAM;IACjC,UAAU,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IAC1C,aAAa,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IAC7C,GAAG,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IACnC,SAAS,EAAE,MAAM,CAAC,MAAM;IACxB,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;CACzC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,uBAAuB,EAAE,CAAC,CAAC,CAAC;AAIrE,gBAAgB;AAChB,MAAM,CAAC,MAAM,6BAA6B;AACxC,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,EAAE,EAAE,MAAM,CAAC,MAAM;CAClB,CAAC,CAAC;AAIL,gBAAgB;AAChB;;;;GAIG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CACzE,GAAG,EAAE,CAAC,CAAC;IACL,WAAW,EAAE,4BAA4B;IACzC,YAAY,EAAE,6BAA6B;IAC3C,MAAM,EAAE,CAAC,UAAU,CAAU;CAC9B,CAAC,CACH,CAAC"}
|
|
@@ -1,6 +1,26 @@
|
|
|
1
1
|
import * as Schema from "effect/Schema";
|
|
2
2
|
import { BadRequest } from "../errors.ts";
|
|
3
|
-
export declare const CreateNLSearchModelInput: Schema.Struct<{
|
|
3
|
+
export declare const CreateNLSearchModelInput: Schema.Struct<{
|
|
4
|
+
readonly model_name: Schema.optional<Schema.String>;
|
|
5
|
+
readonly api_key: Schema.optional<Schema.Schema<string | import("effect/Redacted").Redacted<string>>>;
|
|
6
|
+
readonly api_url: Schema.optional<Schema.String>;
|
|
7
|
+
readonly max_bytes: Schema.optional<Schema.Number>;
|
|
8
|
+
readonly temperature: Schema.optional<Schema.Number>;
|
|
9
|
+
readonly system_prompt: Schema.optional<Schema.String>;
|
|
10
|
+
readonly top_p: Schema.optional<Schema.Number>;
|
|
11
|
+
readonly top_k: Schema.optional<Schema.Number>;
|
|
12
|
+
readonly stop_sequences: Schema.optional<Schema.$Array<Schema.String>>;
|
|
13
|
+
readonly api_version: Schema.optional<Schema.String>;
|
|
14
|
+
readonly project_id: Schema.optional<Schema.String>;
|
|
15
|
+
readonly access_token: Schema.optional<Schema.Schema<string | import("effect/Redacted").Redacted<string>>>;
|
|
16
|
+
readonly refresh_token: Schema.optional<Schema.Schema<string | import("effect/Redacted").Redacted<string>>>;
|
|
17
|
+
readonly client_id: Schema.optional<Schema.String>;
|
|
18
|
+
readonly client_secret: Schema.optional<Schema.Schema<string | import("effect/Redacted").Redacted<string>>>;
|
|
19
|
+
readonly region: Schema.optional<Schema.String>;
|
|
20
|
+
readonly max_output_tokens: Schema.optional<Schema.Number>;
|
|
21
|
+
readonly account_id: Schema.optional<Schema.String>;
|
|
22
|
+
readonly id: Schema.optional<Schema.String>;
|
|
23
|
+
}>;
|
|
4
24
|
export type CreateNLSearchModelInput = typeof CreateNLSearchModelInput.Type;
|
|
5
25
|
export declare const CreateNLSearchModelOutput: Schema.Struct<{
|
|
6
26
|
readonly id: Schema.String;
|
|
@@ -11,7 +31,27 @@ export type CreateNLSearchModelOutput = typeof CreateNLSearchModelOutput.Type;
|
|
|
11
31
|
*
|
|
12
32
|
* Create a new NL search model.
|
|
13
33
|
*/
|
|
14
|
-
export declare const createNLSearchModel: import("@distilled.cloud/core/client").OperationMethod<{
|
|
34
|
+
export declare const createNLSearchModel: import("@distilled.cloud/core/client").OperationMethod<{
|
|
35
|
+
readonly access_token?: string | import("effect/Redacted").Redacted<string> | undefined;
|
|
36
|
+
readonly account_id?: string | undefined;
|
|
37
|
+
readonly api_key?: string | import("effect/Redacted").Redacted<string> | undefined;
|
|
38
|
+
readonly api_url?: string | undefined;
|
|
39
|
+
readonly api_version?: string | undefined;
|
|
40
|
+
readonly client_id?: string | undefined;
|
|
41
|
+
readonly client_secret?: string | import("effect/Redacted").Redacted<string> | undefined;
|
|
42
|
+
readonly id?: string | undefined;
|
|
43
|
+
readonly max_bytes?: number | undefined;
|
|
44
|
+
readonly max_output_tokens?: number | undefined;
|
|
45
|
+
readonly model_name?: string | undefined;
|
|
46
|
+
readonly project_id?: string | undefined;
|
|
47
|
+
readonly refresh_token?: string | import("effect/Redacted").Redacted<string> | undefined;
|
|
48
|
+
readonly region?: string | undefined;
|
|
49
|
+
readonly stop_sequences?: readonly string[] | undefined;
|
|
50
|
+
readonly system_prompt?: string | undefined;
|
|
51
|
+
readonly temperature?: number | undefined;
|
|
52
|
+
readonly top_k?: number | undefined;
|
|
53
|
+
readonly top_p?: number | undefined;
|
|
54
|
+
}, {
|
|
15
55
|
readonly id: string;
|
|
16
56
|
}, BadRequest, import("~/credentials.ts").Credentials>;
|
|
17
57
|
//# sourceMappingURL=createNLSearchModel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createNLSearchModel.d.ts","sourceRoot":"","sources":["../../src/operations/createNLSearchModel.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"createNLSearchModel.d.ts","sourceRoot":"","sources":["../../src/operations/createNLSearchModel.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAI1C,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;EAqB2B,CAAC;AACjE,MAAM,MAAM,wBAAwB,GAAG,OAAO,wBAAwB,CAAC,IAAI,CAAC;AAG5E,eAAO,MAAM,yBAAyB;;EAGlC,CAAC;AACL,MAAM,MAAM,yBAAyB,GAAG,OAAO,yBAAyB,CAAC,IAAI,CAAC;AAG9E;;;;GAIG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;sDAI7B,CAAC"}
|
|
@@ -2,9 +2,30 @@ import * as Schema from "effect/Schema";
|
|
|
2
2
|
import { API } from "../client.js";
|
|
3
3
|
import * as T from "../traits.js";
|
|
4
4
|
import { BadRequest } from "../errors.js";
|
|
5
|
+
import { SensitiveString } from "../sensitive.js";
|
|
5
6
|
// Input Schema
|
|
6
7
|
export const CreateNLSearchModelInput =
|
|
7
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
9
|
+
model_name: Schema.optional(Schema.String),
|
|
10
|
+
api_key: Schema.optional(SensitiveString),
|
|
11
|
+
api_url: Schema.optional(Schema.String),
|
|
12
|
+
max_bytes: Schema.optional(Schema.Number),
|
|
13
|
+
temperature: Schema.optional(Schema.Number),
|
|
14
|
+
system_prompt: Schema.optional(Schema.String),
|
|
15
|
+
top_p: Schema.optional(Schema.Number),
|
|
16
|
+
top_k: Schema.optional(Schema.Number),
|
|
17
|
+
stop_sequences: Schema.optional(Schema.Array(Schema.String)),
|
|
18
|
+
api_version: Schema.optional(Schema.String),
|
|
19
|
+
project_id: Schema.optional(Schema.String),
|
|
20
|
+
access_token: Schema.optional(SensitiveString),
|
|
21
|
+
refresh_token: Schema.optional(SensitiveString),
|
|
22
|
+
client_id: Schema.optional(Schema.String),
|
|
23
|
+
client_secret: Schema.optional(SensitiveString),
|
|
24
|
+
region: Schema.optional(Schema.String),
|
|
25
|
+
max_output_tokens: Schema.optional(Schema.Number),
|
|
26
|
+
account_id: Schema.optional(Schema.String),
|
|
27
|
+
id: Schema.optional(Schema.String),
|
|
28
|
+
}).pipe(T.Http({ method: "POST", path: "/nl_search_models" }));
|
|
8
29
|
// Output Schema
|
|
9
30
|
export const CreateNLSearchModelOutput =
|
|
10
31
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createNLSearchModel.js","sourceRoot":"","sources":["../../src/operations/createNLSearchModel.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACnC,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"createNLSearchModel.js","sourceRoot":"","sources":["../../src/operations/createNLSearchModel.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACnC,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAElD,eAAe;AACf,MAAM,CAAC,MAAM,wBAAwB;AACnC,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,UAAU,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IAC1C,OAAO,EAAE,MAAM,CAAC,QAAQ,CAAC,eAAe,CAAC;IACzC,OAAO,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IACvC,SAAS,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IACzC,WAAW,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IAC3C,aAAa,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IAC7C,KAAK,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IACrC,KAAK,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IACrC,cAAc,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAC5D,WAAW,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IAC3C,UAAU,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IAC1C,YAAY,EAAE,MAAM,CAAC,QAAQ,CAAC,eAAe,CAAC;IAC9C,aAAa,EAAE,MAAM,CAAC,QAAQ,CAAC,eAAe,CAAC;IAC/C,SAAS,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IACzC,aAAa,EAAE,MAAM,CAAC,QAAQ,CAAC,eAAe,CAAC;IAC/C,MAAM,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IACtC,iBAAiB,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IACjD,UAAU,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IAC1C,EAAE,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;CACnC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,mBAAmB,EAAE,CAAC,CAAC,CAAC;AAGjE,gBAAgB;AAChB,MAAM,CAAC,MAAM,yBAAyB;AACpC,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,EAAE,EAAE,MAAM,CAAC,MAAM;CAClB,CAAC,CAAC;AAGL,gBAAgB;AAChB;;;;GAIG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAC7E,WAAW,EAAE,wBAAwB;IACrC,YAAY,EAAE,yBAAyB;IACvC,MAAM,EAAE,CAAC,UAAU,CAAU;CAC9B,CAAC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@distilled.cloud/typesense",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.19.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/alchemy-run/distilled",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"specs:update": "git -C specs/typesense-api-spec fetch && git -C specs/typesense-api-spec checkout master && git -C specs/typesense-api-spec pull"
|
|
74
74
|
},
|
|
75
75
|
"dependencies": {
|
|
76
|
-
"@distilled.cloud/core": "0.
|
|
76
|
+
"@distilled.cloud/core": "0.19.0"
|
|
77
77
|
},
|
|
78
78
|
"devDependencies": {
|
|
79
79
|
"@types/bun": "^1.3.0",
|
package/src/index.ts
CHANGED
|
@@ -2,12 +2,21 @@ import * as Schema from "effect/Schema";
|
|
|
2
2
|
import { API } from "../client.ts";
|
|
3
3
|
import * as T from "../traits.ts";
|
|
4
4
|
import { BadRequest } from "../errors.ts";
|
|
5
|
+
import { SensitiveString } from "../sensitive.ts";
|
|
5
6
|
|
|
6
7
|
// Input Schema
|
|
7
8
|
export const CreateConversationModelInput =
|
|
8
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
10
|
+
id: Schema.optional(Schema.String),
|
|
11
|
+
model_name: Schema.String,
|
|
12
|
+
api_key: Schema.optional(SensitiveString),
|
|
13
|
+
history_collection: Schema.String,
|
|
14
|
+
account_id: Schema.optional(Schema.String),
|
|
15
|
+
system_prompt: Schema.optional(Schema.String),
|
|
16
|
+
ttl: Schema.optional(Schema.Number),
|
|
17
|
+
max_bytes: Schema.Number,
|
|
18
|
+
vllm_url: Schema.optional(Schema.String),
|
|
19
|
+
}).pipe(T.Http({ method: "POST", path: "/conversations/models" }));
|
|
11
20
|
export type CreateConversationModelInput =
|
|
12
21
|
typeof CreateConversationModelInput.Type;
|
|
13
22
|
|
|
@@ -2,12 +2,31 @@ import * as Schema from "effect/Schema";
|
|
|
2
2
|
import { API } from "../client.ts";
|
|
3
3
|
import * as T from "../traits.ts";
|
|
4
4
|
import { BadRequest } from "../errors.ts";
|
|
5
|
+
import { SensitiveString } from "../sensitive.ts";
|
|
5
6
|
|
|
6
7
|
// Input Schema
|
|
7
8
|
export const CreateNLSearchModelInput =
|
|
8
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
10
|
+
model_name: Schema.optional(Schema.String),
|
|
11
|
+
api_key: Schema.optional(SensitiveString),
|
|
12
|
+
api_url: Schema.optional(Schema.String),
|
|
13
|
+
max_bytes: Schema.optional(Schema.Number),
|
|
14
|
+
temperature: Schema.optional(Schema.Number),
|
|
15
|
+
system_prompt: Schema.optional(Schema.String),
|
|
16
|
+
top_p: Schema.optional(Schema.Number),
|
|
17
|
+
top_k: Schema.optional(Schema.Number),
|
|
18
|
+
stop_sequences: Schema.optional(Schema.Array(Schema.String)),
|
|
19
|
+
api_version: Schema.optional(Schema.String),
|
|
20
|
+
project_id: Schema.optional(Schema.String),
|
|
21
|
+
access_token: Schema.optional(SensitiveString),
|
|
22
|
+
refresh_token: Schema.optional(SensitiveString),
|
|
23
|
+
client_id: Schema.optional(Schema.String),
|
|
24
|
+
client_secret: Schema.optional(SensitiveString),
|
|
25
|
+
region: Schema.optional(Schema.String),
|
|
26
|
+
max_output_tokens: Schema.optional(Schema.Number),
|
|
27
|
+
account_id: Schema.optional(Schema.String),
|
|
28
|
+
id: Schema.optional(Schema.String),
|
|
29
|
+
}).pipe(T.Http({ method: "POST", path: "/nl_search_models" }));
|
|
11
30
|
export type CreateNLSearchModelInput = typeof CreateNLSearchModelInput.Type;
|
|
12
31
|
|
|
13
32
|
// Output Schema
|