baconnier commited on
Commit
3c725c1
·
verified ·
1 Parent(s): e04ab27

Update prompt_refiner.py

Browse files
Files changed (1) hide show
  1. prompt_refiner.py +4 -3
prompt_refiner.py CHANGED
@@ -17,7 +17,7 @@ class PromptRefiner:
17
  )
18
  print('_'*100)
19
  print(selected_meta_prompt)
20
- print('_'*100)
21
  messages = [
22
  {
23
  "role": "system",
@@ -25,10 +25,11 @@ class PromptRefiner:
25
  },
26
  {
27
  "role": "user",
28
- "content": selected_meta_prompt["template"].replace("[Insert initial prompt here]", prompt)
29
  }
30
  ]
31
- #print(messages)
 
32
  response = self.client.chat_completion(
33
  model=prompt_refiner_model,
34
  messages=messages,
 
17
  )
18
  print('_'*100)
19
  print(selected_meta_prompt)
20
+ print('°°'*100)
21
  messages = [
22
  {
23
  "role": "system",
 
25
  },
26
  {
27
  "role": "user",
28
+ "content": selected_meta_prompt.replace("[Insert initial prompt here]", prompt)
29
  }
30
  ]
31
+ print(messages)
32
+ print('°°'*100)
33
  response = self.client.chat_completion(
34
  model=prompt_refiner_model,
35
  messages=messages,