Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
phil65 committed Dec 15, 2024
1 parent 98b5a28 commit 25a4490
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/llmling/prompts/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,18 +356,16 @@ def messages(self) -> list[PromptMessage]:
case "text":
# Simple text format - whole file as user message
msg = MessageContent(type="text", content=content)
return [PromptMessage(role="user", content=msg)]
case "markdown":
# TODO: Parse markdown sections into separate messages
msg = MessageContent(type="text", content=content)
return [PromptMessage(role="user", content=msg)]
case "jinja2":
# Raw template - will be formatted during format()
msg = MessageContent(type="text", content=content)
return [PromptMessage(role="user", content=msg)]
case _:
msg = f"Unsupported format: {self.fmt}"
raise ValueError(msg)
return [PromptMessage(role="user", content=msg)]

async def format(
self, arguments: dict[str, Any] | None = None
Expand Down

0 comments on commit 25a4490

Please sign in to comment.