Skip to content

Commit d5fd600

Browse files
authored
Merge pull request #193 from n4ze3m/next
v1.7.0
2 parents 463adea + 09468ac commit d5fd600

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+1588
-331
lines changed

app/ui/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "app",
33
"private": true,
4-
"version": "1.6.1",
4+
"version": "1.7.0",
55
"type": "module",
66
"scripts": {
77
"dev": "vite",

app/ui/src/@types/settings.ts

+13
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,17 @@ export type GetAllModelResponse = {
1212
deleted: boolean;
1313
createdAt: string;
1414
}[];
15+
embedding: {
16+
id: number;
17+
name: string | null;
18+
model_id: string;
19+
model_type: string;
20+
stream_available: boolean;
21+
model_provider: string | null;
22+
local_model: boolean;
23+
config: any;
24+
hide: boolean;
25+
deleted: boolean;
26+
createdAt: string;
27+
}[];
1528
};

app/ui/src/components/Bot/DS/DsTable.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import React from "react";
1616
import { GithubIcon } from "../../Icons/GithubIcon";
1717
import { YoutubeIcon } from "../../Icons/YoutubeIcon";
1818
import { ApiIcon } from "../../Icons/ApiIcon";
19-
2019
export const DsTable = ({
2120
data,
2221
}: {

app/ui/src/components/Bot/DS/NewDsForm.tsx

-4
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,6 @@ export const NewDsForm = ({ onClose }: { onClose: () => void }) => {
5252
description: "New Source added successfully.",
5353
});
5454
form.resetFields();
55-
setSelectedSource({
56-
id: 1,
57-
value: "Website",
58-
});
5955
},
6056
onError: (e) => {
6157
if (axios.isAxiosError(e)) {

app/ui/src/components/Common/BotForm.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ type Props = {
3333
setSelectedSource: React.Dispatch<React.SetStateAction<any>>;
3434
form: FormInstance<any>;
3535
showEmbeddingAndModels: boolean;
36+
newSelectedSource?: any;
3637
};
37-
// @ts-ignore
38-
function classNames(...classes) {
38+
function classNames(...classes: string[]) {
3939
return classes.filter(Boolean).join(" ");
4040
}
4141

@@ -436,7 +436,7 @@ export const BotForm = ({
436436
form={form}
437437
className="space-y-6"
438438
initialValues={{
439-
embedding: "openai",
439+
embedding: "dialoqbase_eb_text-embedding-ada-002",
440440
model: "gpt-3.5-turbo-dbase",
441441
maxDepth: 2,
442442
maxLinks: 10,

0 commit comments

Comments
 (0)