Skip to content

Commit 64b8ac4

Browse files
maykcaldasrenovate[bot]jamesbraza
authored
Updated router calling for fhlmi 0.40.1 (#1190)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: James Braza <[email protected]>
1 parent f65adb0 commit 64b8ac4

File tree

6 files changed

+6274
-6207
lines changed

6 files changed

+6274
-6207
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ classifiers = [
2929
dependencies = [
3030
"anyio",
3131
"fhaviary[llm]>=0.27", # For partial tool concurrency
32-
"fhlmi>=0.39", # Pin for bytes_to_string
32+
"fhlmi>=0.40.1", # Pin for new llm router calling syntax
3333
"html2text", # TODO: evaluate moving to an opt-in dependency
3434
"httpx",
3535
"httpx-aiohttp",

src/paperqa/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1110,7 +1110,7 @@ def make_aviary_tool_selector(self, agent_type: str | type) -> ToolSelector | No
11101110
):
11111111
return ToolSelector(
11121112
model_name=self.agent.agent_llm,
1113-
acompletion=self.get_agent_llm().router.acompletion,
1113+
acompletion=self.get_agent_llm().router().acompletion,
11141114
**(self.agent.agent_config or {}),
11151115
)
11161116
return None

0 commit comments

Comments
 (0)