Overview
Modelrules is a ruleset engine that rewrites LLM API parameters according to user-defined rules and routes them to the configured LLM endpoint provider.
Here you have an example of how to use the Modelrules API:
curl -X POST https://rules.exectx.run/api/chat/completions \
-H "Authorization: Bearer $RULES_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "<USER_DEFINED_PREFIX>::<MODEL_NAME>",
"messages": [{
"role": "user",
"content": "What is the capital of France?"
}],
}'