open-interpreter icon indicating copy to clipboard operation
open-interpreter copied to clipboard

Fix Llama3 backtick hallucination in code blocks

Open CyanideByte opened this issue 2 years ago • 0 comments

Describe the changes you have made:

Fixed a common hallucination of Llama3 inserting a backtick at the start of a code block.

Reference any relevant issues (e.g. "Fixes #000"):

  `
  print("Hello, World!")

Cell In[6], line 1 ` ^ SyntaxError: invalid syntax

Pre-Submission Checklist (optional but appreciated):

  • [x] I have included relevant documentation updates (stored in /docs)
  • [x] I have read docs/CONTRIBUTING.md
  • [x] I have read docs/ROADMAP.md

OS Tests (optional but appreciated):

  • [x] Tested on Windows
  • [ ] Tested on MacOS
  • [ ] Tested on Linux

CyanideByte avatar Apr 21 '24 03:04 CyanideByte