reorganize dirs for dockerize

This commit is contained in:
Danny Avila 2023-03-06 10:15:07 -05:00
parent 6ae154cc42
commit fca546af63
38 changed files with 1056 additions and 1970 deletions

View file

@ -1,5 +1,4 @@
import { SSE } from '../../app/sse';
const endpoint = 'http://localhost:3050/ask';
import { SSE } from './sse';
// const newLineRegex = /^\n+/;
export default function handleSubmit({
@ -12,6 +11,7 @@ export default function handleSubmit({
chatGptLabel,
promptPrefix
}) {
const endpoint = `http://localhost:3080/ask`;
let payload = { model, text, chatGptLabel, promptPrefix };
if (convo.conversationId && convo.parentMessageId) {
payload = {