vaitor2 / chatbot.py

Commit History

"groq_llama3": "llama-3.1-70b-versatile",
a5d0004

youngtsai commited on

update
eb776f5

youngtsai commited on

user_message += "/n (請一定要用繁體中文回答 zh-TW,並用台灣人的禮貌口語表達,回答時不要特別說明這是台灣人的語氣,不要提到「台灣腔」,不用提到「逐字稿」這個詞,用「內容」代替),回答時如果有用到數學式,請用數學符號代替純文字(Latex 用 $ 字號 render)"
ae1f4a3

youngtsai commited on

def chat(self, user_message, chat_history, socratic_mode=False, service_type='openai'):
78a1c85

youngtsai commited on

foxcat_chatbot_avatar_url
930c56c

youngtsai commited on

user_message += "/n (請一定要用繁體中文回答 zh-TW,並用台灣人的禮貌口語表達,回答時不要特別說明這是台灣人的語氣,不用提到「逐字稿」這個詞,用「內容」代替),回答時如果有用到數學式,請用數學符號代替純文字(Latex 用 $ 字號 render)"
a6f92d7

youngtsai commited on

system_prompt = self.instructions
b5efa21

youngtsai commited on

with relaxing atmosphere
2c76de1

youngtsai commited on

instructions
475a393

youngtsai commited on

has_keywords_added = True
fc16e41

youngtsai commited on

model to 3.5
e8c1be7

youngtsai commited on

- 只要是參考逐字稿資料,please use the timestamp format, example:【參考資料:00:00:00】
65acd94

youngtsai commited on

def prepare_system_prompt(self, socratic_mode):
91513d8

youngtsai commited on

if len(trascript_text) > 25000:
4754d23

youngtsai commited on

其他精靈
86e761a

youngtsai commited on

其他精靈
308f945

youngtsai commited on

content=user_message + "/n (請一定要用繁體中文回答 zh-TW,並用台灣人的禮貌口語表達,回答時不要特別說明這是台灣人的語氣,不用提到「逐字稿」這個詞,用「內容」代替),回答時請用數學符號代替文字(Latex 用 $ 字號 render)"
5a81181

youngtsai commited on

user_message += "/n (請一定要用繁體中文回答 zh-TW,並用台灣人的禮貌口語表達,回答時不要特別說明這是台灣人的語氣,不用提到「逐字稿」這個詞,用「內容」代替)"
dc8d82f

youngtsai commited on

no wording 蘇格拉底
e6bee02

youngtsai commited on

chat_with_ai
968db8f

youngtsai commited on