Skip to content

Commit

Permalink
fixed typo in translator.py for fxn declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
Tin Chi Lo committed Nov 15, 2024
1 parent bae94ea commit 417fad3
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/translator.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ def get_language(post: str) -> str:
)

return response.choices[0].message.content

def translate_content(post: str) -> tuple[bool, str]:

def query_llm_robust(post: str) -> tuple[bool, str]:
translation_context = "The team is implementing a translation feature for NodeBB, a forum that allows instructors and students to make posts. Your task is to translate the content of English and non-English posts into English. For inputs that are non-english strings, you will translate into college-level English. If inputs are in English, return the input but with spelling and grammar corrections."
Expand Down

0 comments on commit 417fad3

Please sign in to comment.