Compare commits

...

3 Commits

Author SHA1 Message Date
shokollm
dfa806ab53 fix: add user's message to frontend chat store when sending
Previously, only the assistant's response was added to the frontend store.
Now both user and assistant messages are stored, so the conversation
displays correctly in the chat interface.
2026-04-10 04:00:51 +00:00
shokollm
82645dfb3b fix: update MiniMaxConnector default model to MiniMax-M2.7 2026-04-10 03:53:26 +00:00
c17fa243a1 Merge pull request 'fix: use MiniMax text/chatcompletion_v2 endpoint' (#46) from fix/minimax-endpoint-v2 into main 2026-04-10 05:44:25 +02:00
2 changed files with 4 additions and 1 deletions

View File

@@ -33,7 +33,7 @@ class MiniMaxLLM:
class MiniMaxConnector:
def __init__(self, api_key: str, model: str = "MiniMax-Text-01"):
def __init__(self, api_key: str, model: str = "MiniMax-M2.7"):
self.api_key = api_key
self.model = model

View File

@@ -44,6 +44,9 @@
isSending = true;
// Add user's message immediately
addMessage({ role: 'user', content: message });
try {
const response = await api.bots.chat(botId, message);
addMessage({ role: 'assistant', content: response.response });