Skip to content

Commit

Permalink
feat: 暂存代码
Browse files Browse the repository at this point in the history
  • Loading branch information
okapi129 committed Aug 19, 2023
1 parent ad365c2 commit 5c93eb8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion domain-chatbot/apps/chatbot/chat/chat_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,5 @@ def format_chat_text(self, role_name: str, you_name: str, text: str):
text = text.replace(f'{you_name}:', "")
text = text.replace(f'AI角色:', "")
text = text.replace(f'AI({role_name}):', "")

text = text.replace(f'AI:', "")
return text
2 changes: 1 addition & 1 deletion domain-chatbot/apps/chatbot/config/sys_config.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"liveStreamingConfig": {"B_STATION_ID": "622909"}, "enableProxy": false, "httpProxy": "http://127.0.0.1:7890", "httpsProxy": "https://127.0.0.1:7890", "socks5Proxy": "socks5://127.0.0.1:7890", "languageModelConfig": {"openai": {"OPENAI_API_KEY": "sk-oJ", "OPENAI_BASE_URL": ""}, "textGeneration": {"TEXT_GENERATION_API_URL": "http://127.0.0.1:5000"}}, "characterConfig": {"character": 1, "yourName": "yuki129", "vrmModel": "\u540e\u85e4\u4ec1.vrm"}, "conversationConfig": {"conversationType": "default", "languageModel": "text_generation"}, "memoryStorageConfig": {"localMemory": {"maxMemoryLoads": 5}, "milvusMemory": {"host": "127.0.0.1", "port": "19530", "user": "user", "password": "Milvus", "dbName": "default"}, "longTermMemoryType": "local", "enableSummary": false, "languageModelForSummary": "text_generation", "enableReflection": false, "languageModelForReflection": "text_generation"}, "custom_role_template_type": "template1", "role_name": "1"}
{"liveStreamingConfig": {"B_STATION_ID": "622909"}, "enableProxy": false, "httpProxy": "http://127.0.0.1:7890", "httpsProxy": "https://127.0.0.1:7890", "socks5Proxy": "socks5://127.0.0.1:7890", "languageModelConfig": {"openai": {"OPENAI_API_KEY": "sk-oJ", "OPENAI_BASE_URL": ""}, "textGeneration": {"TEXT_GENERATION_API_URL": "http://127.0.0.1:5000"}}, "characterConfig": {"character": 1, "yourName": "yuki129", "vrmModel": "\u308f\u305f\u3042\u3081_03.vrm"}, "conversationConfig": {"conversationType": "default", "languageModel": "text_generation"}, "memoryStorageConfig": {"localMemory": {"maxMemoryLoads": 5}, "milvusMemory": {"host": "127.0.0.1", "port": "19530", "user": "user", "password": "Milvus", "dbName": "default"}, "longTermMemoryType": "local", "enableSummary": false, "languageModelForSummary": "text_generation", "enableReflection": false, "languageModelForReflection": "text_generation"}, "custom_role_template_type": "template1", "role_name": "1"}
3 changes: 1 addition & 2 deletions domain-chatvrm/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,7 @@ export default function Home() {
// //continue;
// }

// const aiText = `${tag} ${sentence}`;
const aiText = receivedMessage;
const aiText = oldMessage + "," + receivedMessage;
const aiTalks = textsToScreenplay([aiText], koeiroParam);
aiTextLog += aiText;

Expand Down

0 comments on commit 5c93eb8

Please sign in to comment.