diff --git a/models/opencode-go/claude-haiku-5-5-subscription.yaml b/models/opencode-go/claude-haiku-5-5-subscription.yaml new file mode 100644 index 00000000..7d6d4c9a --- /dev/null +++ b/models/opencode-go/claude-haiku-5-5-subscription.yaml @@ -0,0 +1,40 @@ +# yaml-language-server: $schema=https://modelparams.dev/api/v1/schema.json +provider: opencode-go +authType: subscription +apiSurface: openai-chat-completions +model: claude-haiku-5-5 +wireId: opencode-go/claude-haiku-5-5 +params: + - path: max_tokens + type: integer + label: Max tokens + description: Maximum number of tokens to generate in the response. + range: + min: 1 + group: generation_length + - path: presence_penalty + type: number + label: Presence penalty + description: Penalizes tokens that have already appeared to encourage a wider variety of content. + range: + min: -2 + max: 2 + step: 0.1 + group: sampling + - path: frequency_penalty + type: number + label: Frequency penalty + description: Penalizes tokens in proportion to how often they have already appeared. + range: + min: -2 + max: 2 + step: 0.1 + group: sampling + - path: response_format.type + type: enum + label: Response format + description: Choose plain text or force valid JSON output. + values: + - text + - json_object + group: output_format diff --git a/packages/modelparams-python/src/modelparams/_generated/catalog.json b/packages/modelparams-python/src/modelparams/_generated/catalog.json index 3b2e407f..711ba9b1 100644 --- a/packages/modelparams-python/src/modelparams/_generated/catalog.json +++ b/packages/modelparams-python/src/modelparams/_generated/catalog.json @@ -30784,6 +30784,60 @@ } ] }, + { + "provider": "opencode-go", + "authType": "subscription", + "apiSurface": "openai-chat-completions", + "model": "claude-haiku-5-5", + "wireId": "opencode-go/claude-haiku-5-5", + "params": [ + { + "path": "max_tokens", + "label": "Max tokens", + "description": "Maximum number of tokens to generate in the response.", + "group": "generation_length", + "type": "integer", + "range": { + "min": 1 + } + }, + { + "path": "presence_penalty", + "label": "Presence penalty", + "description": "Penalizes tokens that have already appeared to encourage a wider variety of content.", + "group": "sampling", + "type": "number", + "range": { + "min": -2, + "max": 2, + "step": 0.1 + } + }, + { + "path": "frequency_penalty", + "label": "Frequency penalty", + "description": "Penalizes tokens in proportion to how often they have already appeared.", + "group": "sampling", + "type": "number", + "range": { + "min": -2, + "max": 2, + "step": 0.1 + } + }, + { + "path": "response_format.type", + "label": "Response format", + "description": "Choose plain text or force valid JSON output.", + "group": "output_format", + "type": "enum", + "values": [ + "text", + "json_object" + ] + } + ] + }, { "provider": "opencode-go", "authType": "subscription", diff --git a/packages/modelparams-python/src/modelparams/_generated/model_ids.py b/packages/modelparams-python/src/modelparams/_generated/model_ids.py index 0a645e36..1907e8d2 100644 --- a/packages/modelparams-python/src/modelparams/_generated/model_ids.py +++ b/packages/modelparams-python/src/modelparams/_generated/model_ids.py @@ -415,6 +415,7 @@ "openai/o3-mini", "openai/o3-pro", "openai/o4-mini", + "opencode-go/claude-haiku-5-5-subscription", "opencode-go/deepseek-flash-subscription", "opencode-go/deepseek-v4-flash-vision-exp-subscription", "opencode-go/glm-5.3-flash-subscription", @@ -903,6 +904,7 @@ "openai/o3-mini", "openai/o3-pro", "openai/o4-mini", + "opencode-go/claude-haiku-5-5-subscription", "opencode-go/deepseek-flash-subscription", "opencode-go/deepseek-v4-flash-vision-exp-subscription", "opencode-go/glm-5.3-flash-subscription", diff --git a/packages/modelparams-python/src/modelparams/_generated/registry.py b/packages/modelparams-python/src/modelparams/_generated/registry.py index 9af5300d..b521d0a0 100644 --- a/packages/modelparams-python/src/modelparams/_generated/registry.py +++ b/packages/modelparams-python/src/modelparams/_generated/registry.py @@ -440,6 +440,7 @@ "openai/o3-mini": openai.O3_MiniParams, "openai/o3-pro": openai.O3_ProParams, "openai/o4-mini": openai.O4_MiniParams, + "opencode-go/claude-haiku-5-5-subscription": opencode_go.Claude_Haiku_5_5_SubscriptionParams, "opencode-go/deepseek-flash-subscription": opencode_go.Deepseek_Flash_SubscriptionParams, "opencode-go/deepseek-v4-flash-vision-exp-subscription": opencode_go.Deepseek_V4_Flash_Vision_Exp_SubscriptionParams, "opencode-go/glm-5.3-flash-subscription": opencode_go.Glm_5_3_Flash_SubscriptionParams, diff --git a/packages/modelparams-python/src/modelparams/types/opencode_go.py b/packages/modelparams-python/src/modelparams/types/opencode_go.py index d745ab64..10b66a73 100644 --- a/packages/modelparams-python/src/modelparams/types/opencode_go.py +++ b/packages/modelparams-python/src/modelparams/types/opencode_go.py @@ -10,6 +10,18 @@ _PARAMS_CONFIG = ConfigDict(strict=True, extra="forbid") +Claude_Haiku_5_5_SubscriptionParams = TypedDict( + "Claude_Haiku_5_5_SubscriptionParams", + { + "max_tokens": Annotated[int, Field(ge=1)], + "presence_penalty": Annotated[float, Field(ge=-2, le=2)], + "frequency_penalty": Annotated[float, Field(ge=-2, le=2)], + "response_format.type": Literal["text", "json_object"], + }, + total=False, +) +setattr(Claude_Haiku_5_5_SubscriptionParams, "__pydantic_config__", _PARAMS_CONFIG) + Deepseek_Flash_SubscriptionParams = TypedDict( "Deepseek_Flash_SubscriptionParams", { @@ -258,6 +270,7 @@ setattr(Space_Bunny_SubscriptionParams, "__pydantic_config__", _PARAMS_CONFIG) __all__ = [ + "Claude_Haiku_5_5_SubscriptionParams", "Deepseek_Flash_SubscriptionParams", "Deepseek_V4_Flash_Vision_Exp_SubscriptionParams", "Glm_5_3_Flash_SubscriptionParams", diff --git a/packages/modelparams/src/generated/data.ts b/packages/modelparams/src/generated/data.ts index 34a61c8d..dca75368 100644 --- a/packages/modelparams/src/generated/data.ts +++ b/packages/modelparams/src/generated/data.ts @@ -30789,6 +30789,60 @@ const GENERATED_CATALOG = [ } ] }, + { + "provider": "opencode-go", + "authType": "subscription", + "apiSurface": "openai-chat-completions", + "model": "claude-haiku-5-5", + "wireId": "opencode-go/claude-haiku-5-5", + "params": [ + { + "path": "max_tokens", + "label": "Max tokens", + "description": "Maximum number of tokens to generate in the response.", + "group": "generation_length", + "type": "integer", + "range": { + "min": 1 + } + }, + { + "path": "presence_penalty", + "label": "Presence penalty", + "description": "Penalizes tokens that have already appeared to encourage a wider variety of content.", + "group": "sampling", + "type": "number", + "range": { + "min": -2, + "max": 2, + "step": 0.1 + } + }, + { + "path": "frequency_penalty", + "label": "Frequency penalty", + "description": "Penalizes tokens in proportion to how often they have already appeared.", + "group": "sampling", + "type": "number", + "range": { + "min": -2, + "max": 2, + "step": 0.1 + } + }, + { + "path": "response_format.type", + "label": "Response format", + "description": "Choose plain text or force valid JSON output.", + "group": "output_format", + "type": "enum", + "values": [ + "text", + "json_object" + ] + } + ] + }, { "provider": "opencode-go", "authType": "subscription", diff --git a/packages/modelparams/src/generated/defaults.ts b/packages/modelparams/src/generated/defaults.ts index 976dbd73..231aa9f7 100644 --- a/packages/modelparams/src/generated/defaults.ts +++ b/packages/modelparams/src/generated/defaults.ts @@ -2019,6 +2019,7 @@ export const DEFAULTS = { max_completion_tokens: 4096, reasoning_effort: "medium", }, + "opencode-go/claude-haiku-5-5-subscription": {}, "opencode-go/deepseek-flash-subscription": {}, "opencode-go/deepseek-v4-flash-vision-exp-subscription": {}, "opencode-go/glm-5.3-flash-subscription": {}, diff --git a/packages/modelparams/src/generated/model-ids.ts b/packages/modelparams/src/generated/model-ids.ts index 36b801ec..bf818c01 100644 --- a/packages/modelparams/src/generated/model-ids.ts +++ b/packages/modelparams/src/generated/model-ids.ts @@ -413,6 +413,7 @@ export const MODEL_IDS = [ "openai/o3-mini", "openai/o3-pro", "openai/o4-mini", + "opencode-go/claude-haiku-5-5-subscription", "opencode-go/deepseek-flash-subscription", "opencode-go/deepseek-v4-flash-vision-exp-subscription", "opencode-go/glm-5.3-flash-subscription", diff --git a/packages/modelparams/src/generated/params-by-id.ts b/packages/modelparams/src/generated/params-by-id.ts index 353f141f..b602cf0f 100644 --- a/packages/modelparams/src/generated/params-by-id.ts +++ b/packages/modelparams/src/generated/params-by-id.ts @@ -3123,6 +3123,12 @@ export type ParamsById = { max_completion_tokens: number; reasoning_effort: "low" | "medium" | "high" | "xhigh"; }; + "opencode-go/claude-haiku-5-5-subscription": { + max_tokens: number; + presence_penalty: number; + frequency_penalty: number; + "response_format.type": "text" | "json_object"; + }; "opencode-go/deepseek-flash-subscription": { max_tokens: number; temperature: number;