Skip to content

Update code for chat-latest model temperature not supported - #415

Merged
navneetkumar-pim-webkul merged 4 commits into
unopim:masterfrom
pravat-senapati:master
May 25, 2026
Merged

navneetkumar-pim-webkul merged 4 commits into
unopim:masterfrom
pravat-senapati:master

Conversation

@pravat-senapati

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the AI Agent Prism request configuration to treat the chat-latest model as a “no temperature” model, aligning with providers that reject the temperature parameter for that model name.

Changes:

  • Extend the “reasoning/no-temperature” model detection to include chat-latest.
  • Adjust downstream Prism request behavior by skipping usingTemperature() when chat-latest is selected.

Comment thread packages/Webkul/AiAgent/src/Chat/AgentRunner.php
Comment thread packages/Webkul/AiAgent/src/Chat/AgentRunner.php

@pravat-senapati pravat-senapati left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added

@navneetkumar-pim-webkul
navneetkumar-pim-webkul merged commit 876862f into unopim:master May 25, 2026
29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants