Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Updated default models to GPT-5
  • Loading branch information
jamesbraza committed Oct 27, 2025
commit dd5c9c722c0ef0b47a44e26cec4f471f1153bb21
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ asyncio.run(main())

### Choosing Model

By default, PaperQA2 uses OpenAI's `gpt-4o-2024-11-20` model for the
By default, PaperQA2 uses OpenAI's `gpt-5-2025-08-07` model for the
`summary_llm`, `llm`, and `agent_llm`.
Please see the [Settings Cheatsheet](#settings-cheatsheet)
for more information on these settings.
Expand Down Expand Up @@ -895,9 +895,9 @@ will return much faster than the first query and we'll be certain the authors ma

| Setting | Default | Description |
| -------------------------------------------- | -------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- |
| `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). |
| `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). |
| `llm_config` | `None` | Optional configuration for `llm`. |
| `summary_llm` | `"claude-sonnet-4-5-20250929"` | LLM for creating contextual summaries (see Docs.aget_evidence and gather_evidence tool). |
| `summary_llm` | `"gpt-5-2025-08-07"` | LLM for creating contextual summaries (see Docs.aget_evidence and gather_evidence tool). |
| `summary_llm_config` | `None` | Optional configuration for `summary_llm`. |
| `embedding` | `"text-embedding-3-small"` | Embedding model for embedding text chunks when adding papers. |
| `embedding_config` | `None` | Optional configuration for `embedding`. |
Expand Down Expand Up @@ -944,7 +944,7 @@ will return much faster than the first query and we'll be certain the authors ma
| `prompt.summary_json_system` | `summary_json_system_prompt` | System prompt for JSON summaries. |
| `prompt.context_outer` | `CONTEXT_OUTER_PROMPT` | Prompt for how to format all contexts in generate answer. |
| `prompt.context_inner` | `CONTEXT_INNER_PROMPT` | Prompt for how to format a single context in generate answer. Must contain 'name' and 'text' variables. |
| `agent.agent_llm` | `"claude-sonnet-4-5-20250929"` | LLM inside the agent making tool selections. |
| `agent.agent_llm` | `"gpt-5-2025-08-07"` | LLM inside the agent making tool selections. |
| `agent.agent_llm_config` | `None` | Optional configuration for `agent_llm`. |
| `agent.agent_type` | `"ToolSelector"` | Type of agent to use. |
| `agent.agent_config` | `None` | Optional kwarg for AGENT constructor. |
Expand Down
8 changes: 4 additions & 4 deletions src/paperqa/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

import anyio
from aviary.core import Tool, ToolSelector
from lmi import EmbeddingModel, LiteLLMModel, embedding_model_factory
from lmi import CommonLLMNames, EmbeddingModel, LiteLLMModel, embedding_model_factory
from pydantic import (
BaseModel,
ConfigDict,
Expand Down Expand Up @@ -520,7 +520,7 @@ class AgentSettings(BaseModel):
model_config = ConfigDict(extra="forbid")

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

Expand Down Expand Up @@ -688,7 +688,7 @@ class Settings(BaseSettings):
model_config = SettingsConfigDict(extra="ignore")

llm: str = Field(
default="claude-sonnet-4-5-20250929",
default=CommonLLMNames.GPT_5.value,
description=(
"LLM for general use including metadata inference (see Docs.aadd)"
" and answer generation (see Docs.aquery and gen_answer tool)."
Expand All @@ -712,7 +712,7 @@ class Settings(BaseSettings):
),
)
summary_llm: str = Field(
default="claude-sonnet-4-5-20250929",
default=CommonLLMNames.GPT_5.value,
description=(
"LLM for creating contextual summaries"
" (see Docs.aget_evidence and gather_evidence tool)."
Expand Down