#3962·forgecode

[Feature]: Allow omitting topP/temperature for Bedrock models that don't support it (unblock xAI Grok & OpenAI GPT on Amazon Bedrock)

Author: spearmootzCreated Oct 1, 2026Updated Oct 1, 2026
Labelstype: feature

1. Why Do You NEED This Feature?

Bedrock now serves Grok and GPT alongside Anthropic, so one profile gives access to several model families. I want to actually use that — switch between models to compare how they work, their pricing, and their strengths for different tasks. On a Bedrock-only setup (no direct OpenAI/xAI keys), Forge is the blocker: it always sends topP and temperature, which Grok and GPT reject, so I'm stuck on Anthropic only.

2. What Is NOT Possible Right Now?

• Cannot invoke any xAI model via Bedrock (us.xai.grok-4.7, us.xai.grok-4.6, …) — every request fails on topP/temperature. • Cannot invoke any OpenAI model via Bedrock (us.openai.gpt-6-sol, us.openai.gpt-5.6-*, …) — same failure. • Cannot disable or omit sampling parameters (top_p/top_k/temperature) at a global, provider, or per-model level; the default is always serialized and sent. • No per-model capability flag exists to tell Forge a model doesn't support a given inference field. • Net effect: these models are selectable in the picker but 100% unusable, with no user-side workaround for Bedrock-only setups.

3. What WILL Be Possible With This Feature?

• xAI Grok and OpenAI GPT models hosted on Amazon Bedrock become fully usable in Forge (chat, tools, agents) • Forge can represent provider-specific inference quirks cleanly, e.g. via a per-model capability flag (supports_top_p = false) that omits topP and (supports_temperature = false) that omits temperature from the Converse request, defaulting openai./xai. Bedrock families to false so they work out of the box. • Anthropic-on-Bedrock behavior is unchanged (it accepts topP and temperature today), so the fix is backward-compatible.

Proposed Solution (User Experience)

• Users gain the ability to omit/override sampling fields (making top_p/top_k/temperature truly optional and excluded from serialization when unset, or allowing a provider/model-level override), unblocking current and future Bedrock models with similar constraints — without waiting for a new Forge release each time.

Forge can also declare a static list where now these models are supported.

Alternatives Considered

it seems that you guys may already be doing something similar to this with the AnthropicModelFamily::AdaptiveOnly

Feature Category

Configuration

Priority/Impact

High - Would significantly improve my workflow

Examples from Other Tools

No response

Additional Context

No response

Pre-submission Checklist

  • I have searched existing issues and confirmed this is not a duplicate
  • I am willing to submit a PR to implement this feature