@budibase/types 3.24.6 → 3.24.7
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.
|
@@ -2,3 +2,21 @@ import { CustomAIProviderConfig } from "../../../documents";
|
|
|
2
2
|
export type AIConfigListResponse = CustomAIProviderConfig[];
|
|
3
3
|
export type CreateAIConfigRequest = Omit<CustomAIProviderConfig, "_id" | "_rev" | "_deleted">;
|
|
4
4
|
export type UpdateAIConfigRequest = CustomAIProviderConfig;
|
|
5
|
+
export interface LLMProviderField {
|
|
6
|
+
key: string;
|
|
7
|
+
label: string;
|
|
8
|
+
placeholder?: string | null;
|
|
9
|
+
tooltip?: string | null;
|
|
10
|
+
required?: boolean;
|
|
11
|
+
field_type?: string;
|
|
12
|
+
options?: string[] | null;
|
|
13
|
+
default_value?: string | null;
|
|
14
|
+
}
|
|
15
|
+
export interface LLMProvider {
|
|
16
|
+
id: string;
|
|
17
|
+
displayName: string;
|
|
18
|
+
externalProvider: string;
|
|
19
|
+
defaultModelPlaceholder?: string;
|
|
20
|
+
credentialFields: LLMProviderField[];
|
|
21
|
+
}
|
|
22
|
+
export type LLMProvidersResponse = LLMProvider[];
|
|
@@ -6,9 +6,8 @@ export declare enum AIConfigType {
|
|
|
6
6
|
export interface CustomAIProviderConfig extends Document {
|
|
7
7
|
name: string;
|
|
8
8
|
provider: string;
|
|
9
|
-
|
|
9
|
+
credentialsFields: Record<string, string>;
|
|
10
10
|
model: string;
|
|
11
|
-
apiKey?: string;
|
|
12
11
|
liteLLMModelId: string;
|
|
13
12
|
webSearchConfig?: WebSearchConfig;
|
|
14
13
|
configType: AIConfigType;
|
|
@@ -18,6 +18,7 @@ export interface ChatConversationRequest extends Document {
|
|
|
18
18
|
agentId: string;
|
|
19
19
|
title?: string;
|
|
20
20
|
messages: UIMessage<AgentMessageMetadata>[];
|
|
21
|
+
transient?: boolean;
|
|
21
22
|
}
|
|
22
23
|
export type CreateChatConversationRequest = Pick<ChatConversationRequest, "chatAppId" | "agentId" | "title">;
|
|
23
24
|
export type DraftChatConversation = Omit<ChatConversationRequest, "agentId"> & {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@budibase/types",
|
|
3
|
-
"version": "3.24.
|
|
3
|
+
"version": "3.24.7",
|
|
4
4
|
"description": "Budibase types",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -27,5 +27,5 @@
|
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"scim-patch": "^0.8.1"
|
|
29
29
|
},
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "9c57745f7886ced1ce7f20d92a776144ff7eeec4"
|
|
31
31
|
}
|