Skip to content

fix(provider): forward agent temperature for config-defined custom models - #34555

Closed
SeashoreShi wants to merge 1 commit into
anomalyco:devfrom
SeashoreShi:fix/custom-model-temperature-default
Closed

SeashoreShi wants to merge 1 commit into
anomalyco:devfrom
SeashoreShi:fix/custom-model-temperature-default

Conversation

@SeashoreShi

Copy link
Copy Markdown
Contributor

Issue for this PR

Closes #34554

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Config-defined custom models currently default capabilities.temperature to false when the model entry omits that field. That causes agent.temperature to be stripped before the OpenAI-compatible request is built.

This PR defaults custom-model temperature support to enabled unless the config explicitly sets temperature: false, and adds regression coverage for both provider merging and the request payload.

How did you verify your code works?

  • bun test test/provider/provider.test.ts test/session/llm.test.ts
  • bun run typecheck

Screenshots / recordings

N/A

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Agent temperature is dropped for config-defined custom OpenAI-compatible models

2 participants