gathnex commited on
Commit
88941d7
β€’
1 Parent(s): 84836fc

Update llm_automation.py

Browse files
Files changed (1) hide show
  1. llm_automation.py +4 -4
llm_automation.py CHANGED
@@ -9,7 +9,7 @@ class llm_auto:
9
 
10
 
11
  def intent_indentifier(self):
12
- model = "gpt-3.5-turbo"
13
  client = OpenAI(api_key = self.openai_api)
14
  DEFAULT_SYSTEM_PROMPT = '''You are a prompt classification assistant. Your role is to recognize prompts where the user intends to create and post content on LinkedIn. If the user clearly indicates the intent to 'post it on LinkedIn with a web URL,' classify it as #Post. If there are no indications of publishing or posting, classify the prompt as #Decline. For all other prompts without publishing intent, classify them as #Decline.
15
  Your task is to distinguish prompts based on their intention to publish content on LinkedIn or not.
@@ -20,7 +20,7 @@ class llm_auto:
20
  4. create and publish the content about in this page 'www.xxx.com' - #Post
21
  '''
22
  response = client.chat.completions.create(
23
- model= model,
24
  messages=[
25
  {f"role": "system", "content": DEFAULT_SYSTEM_PROMPT},
26
  {f"role": "user", "content": "Classify the prompt in the following '#Post' or '#Decline' :" + self.prompt},
@@ -30,7 +30,7 @@ class llm_auto:
30
 
31
 
32
  def normal_gpt(self):
33
- model = "gpt-3.5-turbo"
34
  client = OpenAI(api_key = self.openai_api)
35
  DEFAULT_SYSTEM_PROMPT = "You are Gathnex, an intelligent assistant dedicated to providing effective solutions. Your responses will include emojis to add a friendly and engaging touch. 😊 Analyze user queries and provide clear and practical answers, incorporating emojis to enhance the user experience. Focus on delivering solutions that are accurate, actionable, and helpful. If additional information is required for a more precise solution, politely ask clarifying questions. Your goal is to assist users by providing effective and reliable solutions to their queries. 🌟"
36
  response = client.chat.completions.create(
@@ -50,7 +50,7 @@ class llm_auto:
50
 
51
  def posted_or_not(self, y):
52
  client = OpenAI(api_key = self.openai_api)
53
- model = "gpt-3.5-turbo"
54
  DEFAULT_SYSTEM_PROMPT = "your a assistance just inform the user the linkedin post."
55
  if y == "<Response [201]>":
56
  response1 = client.chat.completions.create(
 
9
 
10
 
11
  def intent_indentifier(self):
12
+ model = "gpt-3.5-turbo-0613"
13
  client = OpenAI(api_key = self.openai_api)
14
  DEFAULT_SYSTEM_PROMPT = '''You are a prompt classification assistant. Your role is to recognize prompts where the user intends to create and post content on LinkedIn. If the user clearly indicates the intent to 'post it on LinkedIn with a web URL,' classify it as #Post. If there are no indications of publishing or posting, classify the prompt as #Decline. For all other prompts without publishing intent, classify them as #Decline.
15
  Your task is to distinguish prompts based on their intention to publish content on LinkedIn or not.
 
20
  4. create and publish the content about in this page 'www.xxx.com' - #Post
21
  '''
22
  response = client.chat.completions.create(
23
+ model= "gpt-3.5-turbo-0613",
24
  messages=[
25
  {f"role": "system", "content": DEFAULT_SYSTEM_PROMPT},
26
  {f"role": "user", "content": "Classify the prompt in the following '#Post' or '#Decline' :" + self.prompt},
 
30
 
31
 
32
  def normal_gpt(self):
33
+ model = "gpt-3.5-turbo-0613"
34
  client = OpenAI(api_key = self.openai_api)
35
  DEFAULT_SYSTEM_PROMPT = "You are Gathnex, an intelligent assistant dedicated to providing effective solutions. Your responses will include emojis to add a friendly and engaging touch. 😊 Analyze user queries and provide clear and practical answers, incorporating emojis to enhance the user experience. Focus on delivering solutions that are accurate, actionable, and helpful. If additional information is required for a more precise solution, politely ask clarifying questions. Your goal is to assist users by providing effective and reliable solutions to their queries. 🌟"
36
  response = client.chat.completions.create(
 
50
 
51
  def posted_or_not(self, y):
52
  client = OpenAI(api_key = self.openai_api)
53
+ model = "gpt-3.5-turbo-0613"
54
  DEFAULT_SYSTEM_PROMPT = "your a assistance just inform the user the linkedin post."
55
  if y == "<Response [201]>":
56
  response1 = client.chat.completions.create(