ubicloud/routes/project/inference_playground.rb
Benjamin Satzger 3b19ae7d51 wip
2024-12-10 16:29:30 +01:00

16 lines
372 B
Ruby

# frozen_string_literal: true
class Clover
hash_branch(:project_prefix, "inference-playground") do |r|
unless @project.get_ff_inference_ui
response.status = 404
r.halt
end
r.get true do
@inference_endpoints = inference_endpoint_list
@inference_tokens = inference_token_list
view "inference/playground/index"
end
end
end