Yuchan5386 commited on
Commit
773bcc1
Β·
verified Β·
1 Parent(s): 919644d

Update api.py

Browse files
Files changed (1) hide show
  1. api.py +1 -2
api.py CHANGED
@@ -293,10 +293,9 @@ memory.add("μ˜ν™” 보러 κ°”λ‹€κ°€ μΉœκ΅¬λž‘ μ‹Έμ› μ–΄")
293
  memory.add("μΉ΄νŽ˜μ—μ„œ κ³΅λΆ€ν–ˆλŠ”λ° 집쀑이 잘 됐어")
294
 
295
  def merge_prompt_with_memory(prompt: str, memories: list):
296
- context = "\n".join(f"κ³Όκ±°: {mem}" for mem in memories)
297
  return f"{context} {prompt}"
298
 
299
-
300
  def mismatch_tone(input_text, output_text):
301
  if "γ…‹γ…‹" in input_text and not re.search(r'γ…‹γ…‹|γ…Ž|재밌|놀|λ§Œλ‚˜|λ§›μ§‘|μ—¬ν–‰', output_text):
302
  return True
 
293
  memory.add("μΉ΄νŽ˜μ—μ„œ κ³΅λΆ€ν–ˆλŠ”λ° 집쀑이 잘 됐어")
294
 
295
  def merge_prompt_with_memory(prompt: str, memories: list):
296
+ context = "\n".join(f"{mem}" for mem in memories)
297
  return f"{context} {prompt}"
298
 
 
299
  def mismatch_tone(input_text, output_text):
300
  if "γ…‹γ…‹" in input_text and not re.search(r'γ…‹γ…‹|γ…Ž|재밌|놀|λ§Œλ‚˜|λ§›μ§‘|μ—¬ν–‰', output_text):
301
  return True