Skip to content

Commit 49c198e

Browse files
committed
Modernized LLMs inside settings
1 parent 43a5de1 commit 49c198e

File tree

2 files changed

+7
-12
lines changed

2 files changed

+7
-12
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -895,9 +895,9 @@ will return much faster than the first query and we'll be certain the authors ma
895895

896896
| Setting | Default | Description |
897897
| -------------------------------------------- | -------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- |
898-
| `llm` | `"gpt-4o-2024-11-20"` | LLM for general use including metadata inference (see Docs.aadd) and answer generation (see Docs.aquery and gen_answer tool). |
898+
| `llm` | `"claude-sonnet-4-5-20250929"` | LLM for general use including metadata inference (see Docs.aadd) and answer generation (see Docs.aquery and gen_answer tool). |
899899
| `llm_config` | `None` | Optional configuration for `llm`. |
900-
| `summary_llm` | `"gpt-4o-2024-11-20"` | LLM for creating contextual summaries (see Docs.aget_evidence and gather_evidence tool). |
900+
| `summary_llm` | `"claude-sonnet-4-5-20250929"` | LLM for creating contextual summaries (see Docs.aget_evidence and gather_evidence tool). |
901901
| `summary_llm_config` | `None` | Optional configuration for `summary_llm`. |
902902
| `embedding` | `"text-embedding-3-small"` | Embedding model for embedding text chunks when adding papers. |
903903
| `embedding_config` | `None` | Optional configuration for `embedding`. |
@@ -944,7 +944,7 @@ will return much faster than the first query and we'll be certain the authors ma
944944
| `prompt.summary_json_system` | `summary_json_system_prompt` | System prompt for JSON summaries. |
945945
| `prompt.context_outer` | `CONTEXT_OUTER_PROMPT` | Prompt for how to format all contexts in generate answer. |
946946
| `prompt.context_inner` | `CONTEXT_INNER_PROMPT` | Prompt for how to format a single context in generate answer. Must contain 'name' and 'text' variables. |
947-
| `agent.agent_llm` | `"gpt-4o-2024-11-20"` | LLM inside the agent making tool selections. |
947+
| `agent.agent_llm` | `"claude-sonnet-4-5-20250929"` | LLM inside the agent making tool selections. |
948948
| `agent.agent_llm_config` | `None` | Optional configuration for `agent_llm`. |
949949
| `agent.agent_type` | `"ToolSelector"` | Type of agent to use. |
950950
| `agent.agent_config` | `None` | Optional kwarg for AGENT constructor. |

src/paperqa/settings.py

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,7 @@
1111

1212
import anyio
1313
from aviary.core import Tool, ToolSelector
14-
from lmi import (
15-
CommonLLMNames,
16-
EmbeddingModel,
17-
LiteLLMModel,
18-
embedding_model_factory,
19-
)
14+
from lmi import EmbeddingModel, LiteLLMModel, embedding_model_factory
2015
from pydantic import (
2116
BaseModel,
2217
ConfigDict,
@@ -525,7 +520,7 @@ class AgentSettings(BaseModel):
525520
model_config = ConfigDict(extra="forbid")
526521

527522
agent_llm: str = Field(
528-
default=CommonLLMNames.GPT_4O.value,
523+
default="claude-sonnet-4-5-20250929",
529524
description="LLM inside the agent making tool selections.",
530525
)
531526

@@ -693,7 +688,7 @@ class Settings(BaseSettings):
693688
model_config = SettingsConfigDict(extra="ignore")
694689

695690
llm: str = Field(
696-
default=CommonLLMNames.GPT_4O.value,
691+
default="claude-sonnet-4-5-20250929",
697692
description=(
698693
"LLM for general use including metadata inference (see Docs.aadd)"
699694
" and answer generation (see Docs.aquery and gen_answer tool)."
@@ -717,7 +712,7 @@ class Settings(BaseSettings):
717712
),
718713
)
719714
summary_llm: str = Field(
720-
default=CommonLLMNames.GPT_4O.value,
715+
default="claude-sonnet-4-5-20250929",
721716
description=(
722717
"LLM for creating contextual summaries"
723718
" (see Docs.aget_evidence and gather_evidence tool)."

0 commit comments

Comments
 (0)