LiveView for creating and editing AI endpoints.
An endpoint combines provider credentials, model selection, and generation parameters into a single configuration.
Summary
Functions
Formats a number with thousands separators.
Returns parameters supported by the model, filtered to ones we have UI for. Groups them by :basic and :advanced.
Gets the max tokens limit for the selected model.
Parameter definitions with type, constraints, and UI metadata. Only parameters we support in the UI are defined here.
Callback implementation for Phoenix.LiveView.render/1.
Functions
Formats a number with thousands separators.
Returns parameters supported by the model, filtered to ones we have UI for. Groups them by :basic and :advanced.
Gets the max tokens limit for the selected model.
Attributes
key(:string) (required)definition(:map) (required)form(:map) (required)endpoint(:any) - Defaults tonil.selected_model(:map) - Defaults tonil.size(:string) - Defaults to"md".
Parameter definitions with type, constraints, and UI metadata. Only parameters we support in the UI are defined here.
Callback implementation for Phoenix.LiveView.render/1.