Skip to content

Commit

Permalink
Removed default user role in single Messages lists
Browse files Browse the repository at this point in the history
  • Loading branch information
maykcaldas committed Jan 29, 2025
1 parent e2b3a20 commit bb4fea8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions paperqa/docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,9 +295,7 @@ async def aadd( # noqa: PLR0912
raise ValueError(f"Could not read document {path}. Is it empty?")
data = {"text": texts[0].text}
messages = [
Message(
role="user", content=parse_config.citation_prompt.format(**data)
),
Message(content=parse_config.citation_prompt.format(**data)),
]
result = await llm_model.call_single( # run_prompt is deprecated
messages=messages,
Expand All @@ -321,7 +319,6 @@ async def aadd( # noqa: PLR0912
data = {"citation": citation}
messages = [
Message(
role="user",
content=parse_config.structured_citation_prompt.format(**data),
),
]
Expand Down

0 comments on commit bb4fea8

Please sign in to comment.