Merge pull request #26 from wtlyu/master

support config host name and proxy address. and fix a docker bug
This commit is contained in:
Danny Avila 2023-03-11 12:05:16 -05:00 committed by GitHub
commit 8624062488
17 changed files with 130 additions and 67 deletions

View file

@ -11,7 +11,7 @@ export default function handleSubmit({
chatGptLabel,
promptPrefix
}) {
const endpoint = `http://localhost:3080/api/ask`;
const endpoint = `/api/ask`;
let payload = { model, text, chatGptLabel, promptPrefix };
if (convo.conversationId && convo.parentMessageId) {
payload = {