From fd2d8cfcb0dbc5cdb69a639c525a54131e023015 Mon Sep 17 00:00:00 2001 From: Guillaume Gay Date: Tue, 14 Jul 2026 13:14:19 +0200 Subject: [PATCH] feat: add xAI Grok 4.5 parameters --- models/xai/grok-4.5-subscription.yaml | 57 +++++++++++++++++++++++++++ models/xai/grok-4.5.yaml | 57 +++++++++++++++++++++++++++ 2 files changed, 114 insertions(+) create mode 100644 models/xai/grok-4.5-subscription.yaml create mode 100644 models/xai/grok-4.5.yaml diff --git a/models/xai/grok-4.5-subscription.yaml b/models/xai/grok-4.5-subscription.yaml new file mode 100644 index 0000000..b6b1b38 --- /dev/null +++ b/models/xai/grok-4.5-subscription.yaml @@ -0,0 +1,57 @@ +# yaml-language-server: $schema=https://modelparams.dev/api/v1/schema.json +provider: xai +authType: subscription +model: grok-4.5 +params: + - path: max_completion_tokens + type: integer + label: Max completion tokens + description: Upper bound for visible output tokens generated in the chat completion. + range: + min: 1 + group: generation_length + - path: temperature + type: number + label: Temperature + description: Controls randomness. Lower values make outputs more focused; higher values make them more varied. + default: 1 + range: + min: 0 + max: 2 + step: 0.1 + group: sampling + - path: top_p + type: number + label: Top P + description: Controls nucleus sampling by limiting generation to tokens within the selected cumulative probability. + default: 1 + range: + min: 0 + max: 1 + step: 0.01 + group: sampling + - path: seed + type: integer + label: Seed + description: Optional seed used for decoding when reproducible sampling is desired. + group: sampling + - path: reasoning_effort + type: enum + label: Reasoning effort + description: Controls how much reasoning Grok performs before responding. Reasoning cannot be disabled for this model. + default: high + values: + - low + - medium + - high + group: reasoning + - path: response_format.type + type: enum + label: Response format + description: Controls whether the model returns text, JSON mode output, or structured JSON schema output. + default: text + values: + - text + - json_object + - json_schema + group: output_format diff --git a/models/xai/grok-4.5.yaml b/models/xai/grok-4.5.yaml new file mode 100644 index 0000000..026a63a --- /dev/null +++ b/models/xai/grok-4.5.yaml @@ -0,0 +1,57 @@ +# yaml-language-server: $schema=https://modelparams.dev/api/v1/schema.json +provider: xai +authType: api_key +model: grok-4.5 +params: + - path: max_completion_tokens + type: integer + label: Max completion tokens + description: Upper bound for visible output tokens generated in the chat completion. + range: + min: 1 + group: generation_length + - path: temperature + type: number + label: Temperature + description: Controls randomness. Lower values make outputs more focused; higher values make them more varied. + default: 1 + range: + min: 0 + max: 2 + step: 0.1 + group: sampling + - path: top_p + type: number + label: Top P + description: Controls nucleus sampling by limiting generation to tokens within the selected cumulative probability. + default: 1 + range: + min: 0 + max: 1 + step: 0.01 + group: sampling + - path: seed + type: integer + label: Seed + description: Optional seed used for decoding when reproducible sampling is desired. + group: sampling + - path: reasoning_effort + type: enum + label: Reasoning effort + description: Controls how much reasoning Grok performs before responding. Reasoning cannot be disabled for this model. + default: high + values: + - low + - medium + - high + group: reasoning + - path: response_format.type + type: enum + label: Response format + description: Controls whether the model returns text, JSON mode output, or structured JSON schema output. + default: text + values: + - text + - json_object + - json_schema + group: output_format