From a659eae53a75b31aff66bfbd59a0c016801a656d Mon Sep 17 00:00:00 2001 From: Guillaume Gay Date: Sun, 19 Jul 2026 04:32:26 +0000 Subject: [PATCH] feat: add moonshot/moonshot-v1-128k-vision-preview --- .../moonshot-v1-128k-vision-preview.yaml | 75 +++++++++++++++ packages/modelparams/src/generated/data.ts | 93 +++++++++++++++++++ .../modelparams/src/generated/defaults.ts | 8 ++ .../modelparams/src/generated/model-ids.ts | 1 + .../modelparams/src/generated/params-by-id.ts | 9 ++ 5 files changed, 186 insertions(+) create mode 100644 models/moonshot/moonshot-v1-128k-vision-preview.yaml diff --git a/models/moonshot/moonshot-v1-128k-vision-preview.yaml b/models/moonshot/moonshot-v1-128k-vision-preview.yaml new file mode 100644 index 0000000..1e2a893 --- /dev/null +++ b/models/moonshot/moonshot-v1-128k-vision-preview.yaml @@ -0,0 +1,75 @@ +# yaml-language-server: $schema=https://modelparams.dev/api/v1/schema.json +provider: moonshot +authType: api_key +model: moonshot-v1-128k-vision-preview +params: + - path: max_completion_tokens + type: integer + label: Max tokens + description: Maximum number of tokens to generate 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: 0.3 + range: + min: 0 + max: 1 + 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: n + type: integer + label: Number of completions + description: How many chat completion choices to generate for the request. + default: 1 + range: + min: 1 + max: 5 + group: generation_length + - path: presence_penalty + type: number + label: Presence penalty + description: >- + Penalizes tokens that have already appeared, encouraging the model to talk about new topics. + default: 0 + range: + min: -2 + max: 2 + step: 0.1 + group: sampling + - path: frequency_penalty + type: number + label: Frequency penalty + description: Penalizes tokens by how often they have appeared, reducing verbatim repetition. + default: 0 + range: + min: -2 + max: 2 + step: 0.1 + group: sampling + - path: response_format.type + type: enum + label: Response format + description: Forces the response into plain text or a JSON object. + default: text + values: + - text + - json_object + group: output_format diff --git a/packages/modelparams/src/generated/data.ts b/packages/modelparams/src/generated/data.ts index 96c83e5..e1c8f19 100644 --- a/packages/modelparams/src/generated/data.ts +++ b/packages/modelparams/src/generated/data.ts @@ -10276,6 +10276,99 @@ export const CATALOG = [ } ] }, + { + "provider": "moonshot", + "authType": "api_key", + "model": "moonshot-v1-128k-vision-preview", + "params": [ + { + "path": "max_completion_tokens", + "label": "Max tokens", + "description": "Maximum number of tokens to generate in the chat completion.", + "group": "generation_length", + "type": "integer", + "range": { + "min": 1 + } + }, + { + "path": "temperature", + "label": "Temperature", + "description": "Controls randomness. Lower values make outputs more focused; higher values make them more varied.", + "group": "sampling", + "type": "number", + "default": 0.3, + "range": { + "min": 0, + "max": 1, + "step": 0.1 + } + }, + { + "path": "top_p", + "label": "Top P", + "description": "Controls nucleus sampling by limiting generation to tokens within the selected cumulative probability.", + "group": "sampling", + "type": "number", + "default": 1, + "range": { + "min": 0, + "max": 1, + "step": 0.01 + } + }, + { + "path": "n", + "label": "Number of completions", + "description": "How many chat completion choices to generate for the request.", + "group": "generation_length", + "type": "integer", + "default": 1, + "range": { + "min": 1, + "max": 5 + } + }, + { + "path": "presence_penalty", + "label": "Presence penalty", + "description": "Penalizes tokens that have already appeared, encouraging the model to talk about new topics.", + "group": "sampling", + "type": "number", + "default": 0, + "range": { + "min": -2, + "max": 2, + "step": 0.1 + } + }, + { + "path": "frequency_penalty", + "label": "Frequency penalty", + "description": "Penalizes tokens by how often they have appeared, reducing verbatim repetition.", + "group": "sampling", + "type": "number", + "default": 0, + "range": { + "min": -2, + "max": 2, + "step": 0.1 + } + }, + { + "path": "response_format.type", + "label": "Response format", + "description": "Forces the response into plain text or a JSON object.", + "group": "output_format", + "type": "enum", + "default": "text", + "values": [ + "text", + "json_object" + ] + } + ] + }, { "provider": "moonshot", "authType": "api_key", diff --git a/packages/modelparams/src/generated/defaults.ts b/packages/modelparams/src/generated/defaults.ts index a3bb2df..a8120a1 100644 --- a/packages/modelparams/src/generated/defaults.ts +++ b/packages/modelparams/src/generated/defaults.ts @@ -760,6 +760,14 @@ export const DEFAULTS = { frequency_penalty: 0, "response_format.type": "text", }, + "moonshot/moonshot-v1-128k-vision-preview": { + temperature: 0.3, + top_p: 1, + n: 1, + presence_penalty: 0, + frequency_penalty: 0, + "response_format.type": "text", + }, "moonshot/moonshot-v1-32k": { temperature: 0.3, top_p: 1, diff --git a/packages/modelparams/src/generated/model-ids.ts b/packages/modelparams/src/generated/model-ids.ts index 99530ee..6ffc75c 100644 --- a/packages/modelparams/src/generated/model-ids.ts +++ b/packages/modelparams/src/generated/model-ids.ts @@ -115,6 +115,7 @@ export const MODEL_IDS = [ "moonshot/kimi-k2.7-code-subscription", "moonshot/kimi-k3", "moonshot/moonshot-v1-128k", + "moonshot/moonshot-v1-128k-vision-preview", "moonshot/moonshot-v1-32k", "moonshot/moonshot-v1-8k", "nvidia/gliner-pii", diff --git a/packages/modelparams/src/generated/params-by-id.ts b/packages/modelparams/src/generated/params-by-id.ts index 651d6d4..ec136db 100644 --- a/packages/modelparams/src/generated/params-by-id.ts +++ b/packages/modelparams/src/generated/params-by-id.ts @@ -952,6 +952,15 @@ export type ParamsById = { frequency_penalty: number; "response_format.type": "text" | "json_object"; }; + "moonshot/moonshot-v1-128k-vision-preview": { + max_completion_tokens: number; + temperature: number; + top_p: number; + n: number; + presence_penalty: number; + frequency_penalty: number; + "response_format.type": "text" | "json_object"; + }; "moonshot/moonshot-v1-32k": { max_completion_tokens: number; temperature: number;