feat: feat: new endpoint-style submit

This commit is contained in:
Wentao Lyu 2023-03-31 03:22:57 +08:00
parent 089ca5f120
commit adcc021c9e
22 changed files with 566 additions and 478 deletions

View file

@ -79,7 +79,7 @@ const useConversation = () => {
if (endpoint === null)
// get the default model
conversation = getDefaultConversation({ conversation, availableEndpoints, prevConversation });
console.log(conversation);
setConversation(conversation);
setMessages(messages);
resetLatestMessage();

View file

@ -1,6 +1,7 @@
import conversation from './conversation';
import conversations from './conversations';
import models from './models';
import endpoints from './endpoints';
import user from './user';
import text from './text';
import submission from './submission';
@ -10,6 +11,7 @@ export default {
...conversation,
...conversations,
...models,
...endpoints,
...user,
text,
...submission,