hermes - 💡(How to fix) Fix Feature Request: Configurable Temperature Parameter for Model Inference [1 comments, 1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
NousResearch/hermes-agent#17565Fetched 2026-04-30 06:46:45
View on GitHub
Comments
1
Participants
1
Timeline
5
Reactions
0
Author
Participants
Timeline (top)
labeled ×4commented ×1

Fix Action

Fix / Workaround

Current Workarounds (Insufficient)

  • Internal code path: request_overrides can set temperature, but this is not exposed via config.yaml or CLI
  • Kimi models: hardcoded to omit temperature entirely (special case)
  • Other models: no temperature sent → relies on provider default
RAW_BUFFERClick to expand / collapse

Problem

Hermes Agent currently does not expose a user-facing configuration for the LLM inference temperature parameter. The temperature is hardcoded internally via _fixed_temperature_for_model() or falls back to the API provider's default (typically 1.0). This causes severe hallucinations on certain models such as Minimax, where the default temperature leads to factually incorrect outputs.

Current Workarounds (Insufficient)

  • Internal code path: request_overrides can set temperature, but this is not exposed via config.yaml or CLI
  • Kimi models: hardcoded to omit temperature entirely (special case)
  • Other models: no temperature sent → relies on provider default

No user-configurable option exists in:

  • config.yaml (model: section)
  • hermes chat CLI flags
  • Environment variables

Proposed Solution

Implement a configuration exposure via config.yaml and CLI. Underlying transport already supports fixed_temperature — this only exposes it to users.

Technical Feasibility

  • ChatCompletionsTransport.build_kwargs() accepts fixed_temperature parameter
  • _fixed_temperature_for_model() can be extended to read config
  • No core inference changes required
  • Backward compatible: default behavior unchanged

Request

Add temperature configuration in model.temperature (config.yaml) and --temperature (CLI).

extent analysis

TL;DR

Implementing a user-configurable temperature parameter via config.yaml and CLI flags can help mitigate severe hallucinations in certain models.

Guidance

  • Introduce a temperature field in the model section of config.yaml to allow users to configure the temperature parameter.
  • Add a --temperature flag to the hermes chat CLI to provide an alternative configuration method.
  • Extend the _fixed_temperature_for_model() function to read the configured temperature from config.yaml or CLI flags.
  • Verify that the underlying transport layer, specifically ChatCompletionsTransport.build_kwargs(), accepts the fixed_temperature parameter and passes it to the API provider.

Example

model:
  temperature: 0.5

Alternatively, using the CLI:

hermes chat --temperature 0.5

Notes

The proposed solution focuses on exposing the temperature configuration to users without requiring core inference changes, ensuring backward compatibility.

Recommendation

Apply the proposed workaround by implementing the temperature configuration exposure via config.yaml and CLI flags, as it directly addresses the issue of severe hallucinations in certain models by allowing users to adjust the temperature parameter.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

hermes - 💡(How to fix) Fix Feature Request: Configurable Temperature Parameter for Model Inference [1 comments, 1 participants]