Skip to content

Commit b67846d

Browse files
authored
Pulled in latest fh-llm-client to resolve TODO on callbacks cast (#827)
1 parent bb497c4 commit b67846d

File tree

4 files changed

+19
-19
lines changed

4 files changed

+19
-19
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ repos:
8484
- aiohttp>=3.10.6 # Match pyproject.toml
8585
- PyMuPDF>=1.24.12
8686
- anyio
87-
- fh-llm-client>=0.0.9 # Match pyproject.toml
87+
- fh-llm-client[deepseek]>=0.0.11 # Match pyproject.toml
8888
- fhaviary[llm]>=0.14 # Match pyproject.toml
8989
- ldp>=0.20 # Match pyproject.toml
9090
- html2text

paperqa/docs.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -681,11 +681,6 @@ async def aquery( # noqa: PLR0912
681681
embedding_model: EmbeddingModel | None = None,
682682
partitioning_fn: Callable[[Embeddable], int] | None = None,
683683
) -> PQASession:
684-
# TODO: remove list cast after release of https://github.com/Future-House/llm-client/pull/36
685-
callbacks = cast(
686-
list[Callable] | None, list(callbacks) if callbacks else callbacks
687-
)
688-
689684
query_settings = get_settings(settings)
690685
answer_config = query_settings.answer
691686
prompt_config = query_settings.prompts

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ dependencies = [
2525
"PyMuPDF>=1.24.12", # For pymupdf.set_messages addition
2626
"aiohttp>=3.10.6", # TODO: remove in favor of httpx, pin for aiohttp.ClientConnectionResetError
2727
"anyio",
28-
"fh-llm-client>=0.0.9", # Pin for CommonLLMNames
28+
"fh-llm-client>=0.0.11", # Pin for LLMModel.run_prompt allowing Iterable
2929
"fhaviary[llm]>=0.14", # For MultipleChoiceQuestion
3030
"html2text", # TODO: evaluate moving to an opt-in dependency
3131
"httpx",
@@ -57,8 +57,8 @@ datasets = [
5757
"datasets",
5858
]
5959
dev = [
60+
"fh-llm-client[deepseek]>=0.0.11", # Pin to ensure DeepSeek compatibility
6061
"ipython>=8", # Pin to keep recent
61-
"litellm>=1.58", # Pin to keep this (transistive fh-llm-client dependency) recent
6262
"mypy>=1.8", # Pin for mutable-override
6363
"paper-qa[datasets,ldp,typing,zotero,local,qdrant]",
6464
"pre-commit>=3.4", # Pin to keep recent

uv.lock

Lines changed: 16 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)