Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions models/opencode-go/claude-haiku-5-5-subscription.yaml
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
13 changes: 13 additions & 0 deletions packages/modelparams-python/src/modelparams/types/opencode_go.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
{
Expand Down Expand Up @@ -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",
Expand Down
54 changes: 54 additions & 0 deletions packages/modelparams/src/generated/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions packages/modelparams/src/generated/defaults.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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": {},
Expand Down
1 change: 1 addition & 0 deletions packages/modelparams/src/generated/model-ids.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
6 changes: 6 additions & 0 deletions packages/modelparams/src/generated/params-by-id.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Loading