Skip to content

feat(llms): added additional params to llm-based blocks for alternative models#1223

Merged
waleedlatif1 merged 2 commits intostagingfrom
fix/router
Sep 2, 2025
Merged

feat(llms): added additional params to llm-based blocks for alternative models#1223
waleedlatif1 merged 2 commits intostagingfrom
fix/router

Conversation

@waleedlatif1
Copy link
Collaborator

Summary

added additional params to llm-based blocks for alternative models, azure models were previously available but not all the params were exposed. Now there's full parity between the other LLM-based blocks and the agent block.

Type of Change

  • New feature

Testing

Tested manually.

Checklist

  • Code follows project style guidelines
  • Self-reviewed my changes
  • Tests added/updated and passing
  • No new warnings introduced
  • I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

@vercel
Copy link

vercel bot commented Sep 2, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
sim Ready Ready Preview Comment Sep 2, 2025 8:25pm
1 Skipped Deployment
Project Deployment Preview Comments Updated (UTC)
docs Skipped Skipped Sep 2, 2025 8:25pm

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

Greptile Summary

This PR enhances LLM-based blocks (router, evaluator, translate) to achieve feature parity with the agent block by adding comprehensive Azure OpenAI support and expanding model provider options. The changes introduce Azure-specific configuration parameters (azureEndpoint and azureApiVersion) that were previously missing, enabling proper Azure OpenAI integration. All affected blocks now support a broader range of model providers including Ollama, OpenRouter, and newer providers like XAI and DeepSeek.

Key architectural improvements include:

  • Model Selection Enhancement: Upgraded from dropdown to combobox components with icon support for better UX
  • Provider Expansion: Added support for OpenRouter models and newer chat providers (xai_chat, deepseek_chat, deepseek_reasoner)
  • Conditional UI Logic: Implemented smart API key visibility that hides unnecessary fields for hosted environments and Ollama models
  • Temperature Control: Added temperature parameters to router and evaluator blocks for consistent model behavior
  • Tool Configuration Updates: Switched from getBaseModelProviders() to getAllModelProviders() for comprehensive model support

The changes maintain backward compatibility while standardizing the configuration interface across all LLM blocks. This creates a unified experience where users can leverage the full spectrum of available AI models with proper provider-specific configuration options.

Confidence score: 3/5

  • This PR introduces significant functionality but has potential runtime issues with provider state access patterns
  • Score reflects complex conditional logic and function call patterns that could fail in edge cases
  • Pay close attention to router.ts and translate.ts files which have the most complex provider state management logic

4 files reviewed, no comments

Edit Code Review Bot Settings | Greptile

@waleedlatif1 waleedlatif1 merged commit 9de0d91 into staging Sep 2, 2025
5 checks passed
@waleedlatif1 waleedlatif1 deleted the fix/router branch September 2, 2025 20:29
waleedlatif1 added a commit that referenced this pull request Sep 2, 2025
…ve models (#1223)

* feat(llms): added additional params to llm-based blocks for alternative models

* add hidden temp param to other LLM-based blocks
arenadeveloper02 pushed a commit to arenadeveloper02/p2-sim that referenced this pull request Sep 19, 2025
…ve models (simstudioai#1223)

* feat(llms): added additional params to llm-based blocks for alternative models

* add hidden temp param to other LLM-based blocks
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.

1 participant