update role

This commit is contained in:
yuruo
2024-01-20 11:23:30 +08:00
parent 5b884378b1
commit 722ada7399
3 changed files with 5 additions and 3 deletions

View File

@@ -37,7 +37,8 @@ class Agent:
response = openai.chat.completions.create(
model="gpt-3.5-turbo", # GPT-3.5 model
messages=[
{"role": "user", "content": self.role +","+ input_text}
{"role": "system", "content": self.role},
{"role": "user", "content": input_text}
],
temperature=0.2
)

View File

@@ -2,4 +2,4 @@ from agent.agent import Agent
class ManagerAgent(Agent):
def __init__(self):
super().__init__("你是一名总经理负责与用户沟通需求制定OKR中的O并对下属的工作成果进行评估")
super().__init__("你是一名总经理负责与用户沟通需求制定OKR中的O并对下属的工作成果进行评估")

View File

@@ -10,10 +10,11 @@ class AutoMate:
def rule_define(self):
o_kr = OKR()
o_kr.set_objective(input("请输入任务: "))
if __name__ == "__main__":
automator = AutoMate()
automator.main()
automator.rule_define()
# print(automator.call_chatgpt_api("Hello"))