Compare commits

...

3 Commits

Author SHA1 Message Date
Dane Urban
21ca9715dd . 2026-03-03 10:15:58 -08:00
Dane Urban
3700bee34f . 2026-03-03 10:14:45 -08:00
Dane Urban
55117fccf2 . 2026-03-03 10:07:34 -08:00
3 changed files with 0 additions and 17 deletions

View File

@@ -865,7 +865,6 @@ def insert_new_model_configuration__no_commit(
is_visible=is_visible,
max_input_tokens=max_input_tokens,
display_name=display_name,
supports_image_input=LLMModelFlowType.VISION in supported_flows,
)
.on_conflict_do_nothing()
.returning(ModelConfiguration.id)
@@ -900,7 +899,6 @@ def update_model_configuration__no_commit(
is_visible=is_visible,
max_input_tokens=max_input_tokens,
display_name=display_name,
supports_image_input=LLMModelFlowType.VISION in supported_flows,
)
.where(ModelConfiguration.id == model_configuration_id)
.returning(ModelConfiguration)

View File

@@ -2882,9 +2882,6 @@ class ModelConfiguration(Base):
# - The end-user is configuring a model and chooses not to set a max-input-tokens limit.
max_input_tokens: Mapped[int | None] = mapped_column(Integer, nullable=True)
# Deprecated: use LLMModelFlow with VISION flow type instead
supports_image_input: Mapped[bool | None] = mapped_column(Boolean, nullable=True)
# Human-readable display name for the model.
# For dynamic providers (OpenRouter, Bedrock, Ollama), this comes from the source API.
# For static providers (OpenAI, Anthropic), this may be null and will fall back to LiteLLM.

View File

@@ -168,18 +168,6 @@ class ModelConfigurationUpsertRequest(BaseModel):
supports_image_input: bool | None = None
display_name: str | None = None # For dynamic providers, from source API
@classmethod
def from_model(
cls, model_configuration_model: "ModelConfigurationModel"
) -> "ModelConfigurationUpsertRequest":
return cls(
name=model_configuration_model.name,
is_visible=model_configuration_model.is_visible,
max_input_tokens=model_configuration_model.max_input_tokens,
supports_image_input=model_configuration_model.supports_image_input,
display_name=model_configuration_model.display_name,
)
class ModelConfigurationView(BaseModel):
name: str