题目

实现一个简单的ai聊天机器人

实现流程

例子

response = get_ai_chat_response(
	message = "hi, my name is Eric",
	user_name = "eric",
)

# 输出:*Hi Eric, what can I do for you!*
print(response)

response = get_user_chat_history(
	user_name = "eric"
	last_n = 2
)

# 输出: [{"type": "user", "text": "hi, my name is Eric"}, {"type": "ai", "text": "Hi Eric, what can I do for you!"}]
print(response)

提交内容要求

在自己的服务器上搭建后端,根据以上要求提交3个能直接访问的API,以及简单的API 说明介绍文档


公司简介

【公司概况】