Skip to content

Commit

Permalink
openai: role tags for 'chatgpt' shorthand
Browse files Browse the repository at this point in the history
  • Loading branch information
lbeurerkellner committed Sep 8, 2023
1 parent 6655b17 commit 3555b3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lmql/runtime/interpreter.py
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ async def continue_for_more_prompt_stmts():
)

def process_query_string(self, s: str):
if not ("turbo" in self.model_identifier or "gpt-4" in self.model_identifier):
if not ("turbo" in self.model_identifier or "gpt-4" in self.model_identifier or "chatgpt" in self.model_identifier):
# replace all r"<lmql:(.*?)\/>" tags with ((\1))
s = re.sub(r"<lmql:(.*?)\/>", r"((\1)):", s)
s = unescape_qstring(s)
Expand Down

0 comments on commit 3555b3b

Please sign in to comment.