Skip to content

Commit dd5c9c7

Browse files
committed
Updated default models to GPT-5
1 parent 5a8e421 commit dd5c9c7

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ asyncio.run(main())
451451

452452
### Choosing Model
453453

454-
By default, PaperQA2 uses OpenAI's `gpt-4o-2024-11-20` model for the
454+
By default, PaperQA2 uses OpenAI's `gpt-5-2025-08-07` model for the
455455
`summary_llm`, `llm`, and `agent_llm`.
456456
Please see the [Settings Cheatsheet](#settings-cheatsheet)
457457
for more information on these settings.
@@ -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` | `"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). |
898+
| `llm` | `"gpt-5-2025-08-07"` | 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` | `"claude-sonnet-4-5-20250929"` | LLM for creating contextual summaries (see Docs.aget_evidence and gather_evidence tool). |
900+
| `summary_llm` | `"gpt-5-2025-08-07"` | 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` | `"claude-sonnet-4-5-20250929"` | LLM inside the agent making tool selections. |
947+
| `agent.agent_llm` | `"gpt-5-2025-08-07"` | 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 & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
import anyio
1313
from aviary.core import Tool, ToolSelector
14-
from lmi import EmbeddingModel, LiteLLMModel, embedding_model_factory
14+
from lmi import CommonLLMNames, EmbeddingModel, LiteLLMModel, embedding_model_factory
1515
from pydantic import (
1616
BaseModel,
1717
ConfigDict,
@@ -520,7 +520,7 @@ class AgentSettings(BaseModel):
520520
model_config = ConfigDict(extra="forbid")
521521

522522
agent_llm: str = Field(
523-
default="claude-sonnet-4-5-20250929",
523+
default=CommonLLMNames.GPT_5.value,
524524
description="LLM inside the agent making tool selections.",
525525
)
526526

@@ -688,7 +688,7 @@ class Settings(BaseSettings):
688688
model_config = SettingsConfigDict(extra="ignore")
689689

690690
llm: str = Field(
691-
default="claude-sonnet-4-5-20250929",
691+
default=CommonLLMNames.GPT_5.value,
692692
description=(
693693
"LLM for general use including metadata inference (see Docs.aadd)"
694694
" and answer generation (see Docs.aquery and gen_answer tool)."
@@ -712,7 +712,7 @@ class Settings(BaseSettings):
712712
),
713713
)
714714
summary_llm: str = Field(
715-
default="claude-sonnet-4-5-20250929",
715+
default=CommonLLMNames.GPT_5.value,
716716
description=(
717717
"LLM for creating contextual summaries"
718718
" (see Docs.aget_evidence and gather_evidence tool)."

0 commit comments

Comments
 (0)