Files
ubicloud/routes/project/inference_endpoint.rb
Benjamin Satzger abda041820 Change order of models
Show inference router based models before other models in the web
console. In the future, we might want to come up with a more explicit
ordering of models.
2025-06-27 19:24:15 +02:00

16 lines
677 B
Ruby

# frozen_string_literal: true
class Clover
hash_branch(:project_prefix, "inference-endpoint") do |r|
r.get web? do
inference_endpoints = Serializers::InferenceEndpoint.serialize(inference_endpoint_ds.eager(:location).all)
inference_router_models = Serializers::InferenceRouterModel.serialize(inference_router_model_ds.all)
@inference_models = inference_router_models + inference_endpoints
@remaining_free_quota = FreeQuota.remaining_free_quota("inference-tokens", @project.id)
@free_quota_unit = "inference tokens"
@has_valid_payment_method = @project.has_valid_payment_method?
view "inference/endpoint/index"
end
end
end