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
28 changes: 28 additions & 0 deletions src/celeste/modalities/images/providers/xai/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,32 @@
ImageParameter.OUTPUT_FORMAT: Choice(options=["url", "b64_json"]),
},
),
Model(
id="grok-imagine-image-quality",
provider=Provider.XAI,
display_name="Grok Imagine Image Quality",
operations={Modality.IMAGES: {Operation.GENERATE, Operation.EDIT}},
parameter_constraints={
ImageParameter.NUM_IMAGES: Range(min=1, max=10),
ImageParameter.ASPECT_RATIO: Choice(
options=[
"1:1",
"3:4",
"4:3",
"9:16",
"16:9",
"2:3",
"3:2",
"9:19.5",
"19.5:9",
"9:20",
"20:9",
"1:2",
"2:1",
"auto",
]
),
ImageParameter.OUTPUT_FORMAT: Choice(options=["url", "b64_json"]),
},
),
]
14 changes: 14 additions & 0 deletions src/celeste/modalities/text/providers/cohere/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,20 @@
from ...parameters import TextParameter

MODELS: list[Model] = [
Model(
id="command-a-plus-05-2026",
provider=Provider.COHERE,
display_name="Command A+ 05-2026",
operations={Modality.TEXT: {Operation.GENERATE, Operation.ANALYZE}},
streaming=True,
parameter_constraints={
Parameter.TEMPERATURE: Range(min=0.0, max=1.0, step=0.01),
Parameter.MAX_TOKENS: Range(min=1, max=65536, step=1),
TextParameter.THINKING_BUDGET: Range(min=-1, max=65536),
TextParameter.OUTPUT_SCHEMA: Schema(),
TextParameter.IMAGE: ImagesConstraint(),
},
),
Model(
id="command-a-vision-07-2025",
provider=Provider.COHERE,
Expand Down
32 changes: 32 additions & 0 deletions src/celeste/modalities/text/providers/mistral/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,22 @@
from ...parameters import TextParameter

MODELS: list[Model] = [
Model(
id="mistral-large-2512",
provider=Provider.MISTRAL,
display_name="Mistral Large 3 (25.12)",
operations={Modality.TEXT: {Operation.GENERATE, Operation.ANALYZE}},
streaming=True,
parameter_constraints={
Parameter.TEMPERATURE: Range(min=0.0, max=2.0, step=0.01),
Parameter.MAX_TOKENS: Range(min=1, max=32768, step=1),
TextParameter.OUTPUT_SCHEMA: Schema(),
TextParameter.IMAGE: ImagesConstraint(),
TextParameter.DOCUMENT: DocumentsConstraint(),
TextParameter.TOOLS: ToolSupport(tools=[]),
TextParameter.TOOL_CHOICE: ToolChoiceSupport(),
},
),
Model(
id="mistral-large-latest",
provider=Provider.MISTRAL,
Expand Down Expand Up @@ -60,6 +76,22 @@
TextParameter.TOOL_CHOICE: ToolChoiceSupport(),
},
),
Model(
id="mistral-small-2603",
provider=Provider.MISTRAL,
display_name="Mistral Small 4 (26.03)",
operations={Modality.TEXT: {Operation.GENERATE, Operation.ANALYZE}},
streaming=True,
parameter_constraints={
Parameter.TEMPERATURE: Range(min=0.0, max=2.0, step=0.01),
Parameter.MAX_TOKENS: Range(min=1, max=32768, step=1),
TextParameter.OUTPUT_SCHEMA: Schema(),
TextParameter.IMAGE: ImagesConstraint(),
TextParameter.DOCUMENT: DocumentsConstraint(),
TextParameter.TOOLS: ToolSupport(tools=[]),
TextParameter.TOOL_CHOICE: ToolChoiceSupport(),
},
),
Model(
id="mistral-small-latest",
provider=Provider.MISTRAL,
Expand Down
54 changes: 54 additions & 0 deletions src/celeste/modalities/text/providers/openai/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,60 @@
TextParameter.DOCUMENT: DocumentsConstraint(),
},
),
Model(
id="gpt-5.5",
provider=Provider.OPENAI,
display_name="GPT-5.5",
operations={Modality.TEXT: {Operation.GENERATE, Operation.ANALYZE}},
streaming=True,
parameter_constraints={
Parameter.MAX_TOKENS: Range(min=1, max=128000),
TextParameter.THINKING_BUDGET: Choice(
options=["minimal", "low", "medium", "high", "xhigh"]
),
TextParameter.VERBOSITY: Choice(options=["low", "medium", "high"]),
TextParameter.TOOLS: ToolSupport(tools=[WebSearch]),
TextParameter.TOOL_CHOICE: ToolChoiceSupport(),
TextParameter.OUTPUT_SCHEMA: Schema(),
TextParameter.IMAGE: ImagesConstraint(),
TextParameter.DOCUMENT: DocumentsConstraint(),
},
),
Model(
id="gpt-5.4-mini",
provider=Provider.OPENAI,
display_name="GPT-5.4 Mini",
operations={Modality.TEXT: {Operation.GENERATE, Operation.ANALYZE}},
streaming=True,
parameter_constraints={
Parameter.MAX_TOKENS: Range(min=1, max=128000),
TextParameter.THINKING_BUDGET: Choice(
options=["minimal", "low", "medium", "high"]
),
TextParameter.TOOLS: ToolSupport(tools=[WebSearch]),
TextParameter.TOOL_CHOICE: ToolChoiceSupport(),
TextParameter.OUTPUT_SCHEMA: Schema(),
TextParameter.IMAGE: ImagesConstraint(),
TextParameter.DOCUMENT: DocumentsConstraint(),
},
),
Model(
id="gpt-5.4-nano",
provider=Provider.OPENAI,
display_name="GPT-5.4 Nano",
operations={Modality.TEXT: {Operation.GENERATE, Operation.ANALYZE}},
streaming=True,
parameter_constraints={
Parameter.MAX_TOKENS: Range(min=1, max=128000),
TextParameter.THINKING_BUDGET: Choice(
options=["minimal", "low", "medium", "high"]
),
TextParameter.TOOLS: ToolSupport(tools=[WebSearch]),
TextParameter.OUTPUT_SCHEMA: Schema(),
TextParameter.IMAGE: ImagesConstraint(),
TextParameter.DOCUMENT: DocumentsConstraint(),
},
),
Model(
id="gpt-5.4",
provider=Provider.OPENAI,
Expand Down
34 changes: 26 additions & 8 deletions src/celeste/modalities/text/providers/xai/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

from celeste.constraints import (
Choice,
ImagesConstraint,
Range,
Schema,
ToolChoiceSupport,
Expand All @@ -15,31 +16,48 @@

MODELS: list[Model] = [
Model(
id="grok-4.20-beta-0309-reasoning",
id="grok-4.3",
provider=Provider.XAI,
display_name="Grok 4.20 Beta 0309 Reasoning",
operations={Modality.TEXT: {Operation.GENERATE}},
display_name="Grok 4.3",
operations={Modality.TEXT: {Operation.GENERATE, Operation.ANALYZE}},
streaming=True,
parameter_constraints={
Parameter.TEMPERATURE: Range(min=0.0, max=2.0),
Parameter.MAX_TOKENS: Range(min=1, max=30000),
Parameter.MAX_TOKENS: Range(min=1, max=131072),
TextParameter.TOOLS: ToolSupport(tools=[WebSearch, XSearch, CodeExecution]),
TextParameter.TOOL_CHOICE: ToolChoiceSupport(),
TextParameter.OUTPUT_SCHEMA: Schema(),
TextParameter.IMAGE: ImagesConstraint(),
},
),
Model(
id="grok-4.20-beta-0309-non-reasoning",
id="grok-4.20-0309-reasoning",
provider=Provider.XAI,
display_name="Grok 4.20 Beta 0309 Non Reasoning",
operations={Modality.TEXT: {Operation.GENERATE}},
display_name="Grok 4.20 0309 Reasoning",
operations={Modality.TEXT: {Operation.GENERATE, Operation.ANALYZE}},
streaming=True,
parameter_constraints={
Parameter.TEMPERATURE: Range(min=0.0, max=2.0),
Parameter.MAX_TOKENS: Range(min=1, max=131072),
TextParameter.TOOLS: ToolSupport(tools=[WebSearch, XSearch, CodeExecution]),
TextParameter.TOOL_CHOICE: ToolChoiceSupport(),
TextParameter.OUTPUT_SCHEMA: Schema(),
TextParameter.IMAGE: ImagesConstraint(),
},
),
Model(
id="grok-4.20-0309-non-reasoning",
provider=Provider.XAI,
display_name="Grok 4.20 0309 Non Reasoning",
operations={Modality.TEXT: {Operation.GENERATE, Operation.ANALYZE}},
streaming=True,
parameter_constraints={
Parameter.TEMPERATURE: Range(min=0.0, max=2.0),
Parameter.MAX_TOKENS: Range(min=1, max=30000),
Parameter.MAX_TOKENS: Range(min=1, max=131072),
TextParameter.TOOLS: ToolSupport(tools=[WebSearch, XSearch, CodeExecution]),
TextParameter.TOOL_CHOICE: ToolChoiceSupport(),
TextParameter.OUTPUT_SCHEMA: Schema(),
TextParameter.IMAGE: ImagesConstraint(),
},
),
Model(
Expand Down
42 changes: 41 additions & 1 deletion src/celeste/modalities/videos/providers/byteplus/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Console display names differ from API model IDs.
"""

from celeste.constraints import Choice, ImageConstraint, Range
from celeste.constraints import Choice, ImageConstraint, ImagesConstraint, Range
from celeste.core import Modality, Operation, Provider
from celeste.mime_types import ImageMimeType
from celeste.models import Model
Expand Down Expand Up @@ -70,4 +70,44 @@
),
},
),
Model(
id="seedance-2-0-260128",
provider=Provider.BYTEPLUS,
operations={Modality.VIDEOS: {Operation.GENERATE}},
display_name="Seedance 2.0",
parameter_constraints={
VideoParameter.DURATION: Range(min=4, max=15),
VideoParameter.RESOLUTION: Choice(options=["480p", "720p"]),
VideoParameter.REFERENCE_IMAGES: ImagesConstraint(
supported_mime_types=BYTEPLUS_SUPPORTED_MIME_TYPES,
max_count=9,
),
VideoParameter.FIRST_FRAME: ImageConstraint(
supported_mime_types=BYTEPLUS_SUPPORTED_MIME_TYPES,
),
VideoParameter.LAST_FRAME: ImageConstraint(
supported_mime_types=BYTEPLUS_SUPPORTED_MIME_TYPES,
),
},
),
Model(
id="seedance-2-0-fast-260128",
provider=Provider.BYTEPLUS,
operations={Modality.VIDEOS: {Operation.GENERATE}},
display_name="Seedance 2.0 Fast",
parameter_constraints={
VideoParameter.DURATION: Range(min=4, max=15),
VideoParameter.RESOLUTION: Choice(options=["480p", "720p"]),
VideoParameter.REFERENCE_IMAGES: ImagesConstraint(
supported_mime_types=BYTEPLUS_SUPPORTED_MIME_TYPES,
max_count=9,
),
VideoParameter.FIRST_FRAME: ImageConstraint(
supported_mime_types=BYTEPLUS_SUPPORTED_MIME_TYPES,
),
VideoParameter.LAST_FRAME: ImageConstraint(
supported_mime_types=BYTEPLUS_SUPPORTED_MIME_TYPES,
),
},
),
]
4 changes: 2 additions & 2 deletions tests/integration_tests/text/test_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
("anthropic", "claude-haiku-4-5"),
("openai", "gpt-4o-mini"),
("google", "gemini-2.5-flash"),
("xai", "grok-4.20-beta-0309-non-reasoning"),
("xai", "grok-4.20-0309-non-reasoning"),
]

# One cheap model per provider for function tools (user-defined)
Expand Down Expand Up @@ -135,7 +135,7 @@ async def test_xai_x_search() -> None:
client = create_client(
modality=Modality.TEXT,
provider="xai",
model="grok-4.20-beta-0309-non-reasoning",
model="grok-4.20-0309-non-reasoning",
)

output = await client.generate(
Expand Down
2 changes: 1 addition & 1 deletion tests/unit_tests/test_text_modality_analyze_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ def test_moonshot_init_request_includes_image_url_block() -> None:

def test_xai_init_request_includes_input_image_block() -> None:
model = Model(
id="grok-4.20-beta-0309-reasoning",
id="grok-4.20-0309-reasoning",
provider=Provider.XAI,
display_name="Grok 4",
operations={Modality.TEXT: {Operation.GENERATE, Operation.ANALYZE}},
Expand Down
Loading