Skip to content

Commit 5a8e421

Browse files
committed
Updated default temperature to 1 for GPT-5
1 parent f9bc11a commit 5a8e421

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -901,7 +901,7 @@ will return much faster than the first query and we'll be certain the authors ma
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`. |
904-
| `temperature` | `0.0` | Temperature for LLMs. |
904+
| `temperature` | `1.0` | Temperature for LLMs. |
905905
| `batch_size` | `1` | Batch size for calling LLMs. |
906906
| `texts_index_mmr_lambda` | `1.0` | Lambda for MMR in text index. |
907907
| `verbosity` | `0` | Integer verbosity level for logging (0-3). 3 = all LLM/Embeddings calls logged. |

src/paperqa/settings.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -736,7 +736,10 @@ class Settings(BaseSettings):
736736
default=None,
737737
description="Optional configuration for the embedding model.",
738738
)
739-
temperature: float = Field(default=0.0, description="Temperature for LLMs.")
739+
temperature: float = Field(
740+
default=1.0,
741+
description="Temperature for LLMs, default is 1 for compatibility with OpenAI's GPT-5.",
742+
)
740743
batch_size: int = Field(default=1, description="Batch size for calling LLMs.")
741744
texts_index_mmr_lambda: float = Field(
742745
default=1.0, description="Lambda for MMR in text index."

0 commit comments

Comments
 (0)