BotSharp/src/Plugins/BotSharp.Plugin.HuggingFace/HuggingChat-UI.md
2023-06-07 22:43:16 -05:00

580 B

Chatbot UI

HuggingChat UI is A chat interface using open source models, eg OpenAssistant..

git clone https://github.com/huggingface/chat-ui
npm i
npm run dev

Add clientConfig.js file in src/lib folder

import { base } from "$app/paths";

export const BASE_URL = `http://localhost:5500${base}`;
  • Copy .env as .env.local

Add BotSharp host in the API endpoint

import { BASE_URL } from '$lib/clientConfig'
# Change all ${base} to ${BASE_URL}
${base}/conversation -> ${BASE_URL}/conversation