Skip to content

Commit

Permalink
fix: comments out unused modules, explicit anys
Browse files Browse the repository at this point in the history
  • Loading branch information
yg-lim committed Aug 7, 2024
1 parent a4bb58e commit 8141697
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion ui/src/components/pages/PageKnowledgeBases.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export function PageKnowledgeBases() {
<div>Loading...</div>
) : (
<div className="grid grid-cols-3 gap-8">
{data.map((knowledgeBase) => (
{data.map((knowledgeBase: any) => (
<Link
href={`/knowledge-bases/${knowledgeBase.id}`}
key={knowledgeBase.id}
Expand Down
2 changes: 1 addition & 1 deletion ui/src/services/chatbot-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export const serverPipelineConfigSchema = z.object({
}),
});

const serverPipelinesConfigSchema = z.array(serverPipelineConfigSchema);
// const serverPipelinesConfigSchema = z.array(serverPipelineConfigSchema);

export type ClientPipelineConfig = z.infer<typeof clientPipelineConfigSchema>;
export type ServerPipelineConfig = z.infer<typeof serverPipelineConfigSchema>;
Expand Down
2 changes: 1 addition & 1 deletion ui/src/services/knowledge-base-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ const serverKnowledgeBaseConfigSchema = z.intersection(
serverKnowledgeBaseFields
);

const knowledgeBasesSchema = z.array(serverKnowledgeBaseConfigSchema);
// const knowledgeBasesSchema = z.array(serverKnowledgeBaseConfigSchema);

export type ClientKnowledgeBaseConfig = z.infer<
typeof clientKnowledgeBaseConfigSchema
Expand Down
10 changes: 5 additions & 5 deletions ui/src/services/query-service.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import axios from "axios";
import z from "zod";
// import z from "zod";

const baseUrl = import.meta.env.VITE_BASE_URL;

Expand All @@ -8,10 +8,10 @@ const baseUrl = import.meta.env.VITE_BASE_URL;
// chatbot_id: z.string(),
// });

const responseSchema = z.object({
type: z.literal("response"),
body: z.string(),
});
// const responseSchema = z.object({
// type: z.literal("response"),
// body: z.string(),
// });

async function sendMessage(id: string, message: string) {
const response = await axios.post(`${baseUrl}/api/query`, {
Expand Down

0 comments on commit 8141697

Please sign in to comment.