Provider::OpenRouter
Constants
SIMPLE_PARAMS = [{"model", "model", String}, {"max_tokens", "max_tokens", Int32}, {"temperature", "temperature", Float64}, {"top_p", "top_p", Float64}, {"top_k", "top_k", Int32}, {"frequency_penalty", "frequency_penalty", Float64}, {"presence_penalty", "presence_penalty", Float64}, {"min_p", "min_p", Float64}, {"repetition_penalty", "repetition_penalty", Float64}]
Class methods
can_access(env : Hash(String, String)) : Bool
Sourcegeneric_json_schema_to_openrouter_response_format(json_schema : JSON::Any) : JSON::Any
Sourcegeneric_role_to_openrouter_role(role : String) : String
Source