Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/n4ze3m/dialoqbase
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Jan 17, 2024
2 parents 4eb68fc + d5fd600 commit 881c7a9
Show file tree
Hide file tree
Showing 88 changed files with 1,588 additions and 331 deletions.
2 changes: 1 addition & 1 deletion app/ui/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "app",
"private": true,
"version": "1.6.1",
"version": "1.7.0",
"type": "module",
"scripts": {
"dev": "vite",
Expand Down
13 changes: 13 additions & 0 deletions app/ui/src/@types/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,17 @@ export type GetAllModelResponse = {
deleted: boolean;
createdAt: string;
}[];
embedding: {
id: number;
name: string | null;
model_id: string;
model_type: string;
stream_available: boolean;
model_provider: string | null;
local_model: boolean;
config: any;
hide: boolean;
deleted: boolean;
createdAt: string;
}[];
};
1 change: 0 additions & 1 deletion app/ui/src/components/Bot/DS/DsTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import React from "react";
import { GithubIcon } from "../../Icons/GithubIcon";
import { YoutubeIcon } from "../../Icons/YoutubeIcon";
import { ApiIcon } from "../../Icons/ApiIcon";

export const DsTable = ({
data,
}: {
Expand Down
4 changes: 0 additions & 4 deletions app/ui/src/components/Bot/DS/NewDsForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,6 @@ export const NewDsForm = ({ onClose }: { onClose: () => void }) => {
description: "New Source added successfully.",
});
form.resetFields();
setSelectedSource({
id: 1,
value: "Website",
});
},
onError: (e) => {
if (axios.isAxiosError(e)) {
Expand Down
6 changes: 3 additions & 3 deletions app/ui/src/components/Common/BotForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ type Props = {
setSelectedSource: React.Dispatch<React.SetStateAction<any>>;
form: FormInstance<any>;
showEmbeddingAndModels: boolean;
newSelectedSource?: any;
};
// @ts-ignore
function classNames(...classes) {
function classNames(...classes: string[]) {
return classes.filter(Boolean).join(" ");
}

Expand Down Expand Up @@ -436,7 +436,7 @@ export const BotForm = ({
form={form}
className="space-y-6"
initialValues={{
embedding: "openai",
embedding: "dialoqbase_eb_text-embedding-ada-002",
model: "gpt-3.5-turbo-dbase",
maxDepth: 2,
maxLinks: 10,
Expand Down
Loading

0 comments on commit 881c7a9

Please sign in to comment.