ChatBot v2
Closed this issue · 3 comments
Undertone0809 commented
打算重构v2版本,大致使用方式如下:
from cushy-chat import ChatBot
bot = ChatBot(key='key')
# ask question
ret, conversation_id = bot.ask(prompt="hello",conversation_id=conversation_id)
# output markdown format conversation
# method1
md_output = bot.output(conversation_id=123)
# method2
md_output = bot.output(conversation_id=123, type='file', file_name='Conversation.md')
# read history
history = bot.get_history(conversation_id=123)
欢迎提出更多新特性以及解决方案,如果你有想法,请在issue中进行交流。
Hizeros commented
Are there somebodys doing it? If not,I'll do it.
Undertone0809 commented
okok