forked from phoenix/litellm-mirror
ui - cleanup showing router settings
This commit is contained in:
parent
41ab5f2f56
commit
eada6f6d5d
1 changed files with 11 additions and 0 deletions
|
@ -37,6 +37,16 @@ const GeneralSettings: React.FC<GeneralSettingsPageProps> = ({
|
||||||
const [form] = Form.useForm();
|
const [form] = Form.useForm();
|
||||||
const [selectedCallback, setSelectedCallback] = useState<string | null>(null);
|
const [selectedCallback, setSelectedCallback] = useState<string | null>(null);
|
||||||
|
|
||||||
|
let paramExplanation: { [key: string]: string } = {
|
||||||
|
"routing_strategy_args": "(dict) Arguments to pass to the routing strategy",
|
||||||
|
"routing_strategy": "(string) Routing strategy to use",
|
||||||
|
"allowed_fails": "(int) Number of times a deployment can fail before being added to cooldown",
|
||||||
|
"cooldown_time": "(int) time in seconds to cooldown a deployment after failure",
|
||||||
|
"num_retries": "(int) Number of retries for failed requests. Defaults to 0.",
|
||||||
|
"timeout": "(float) Timeout for requests. Defaults to None.",
|
||||||
|
"retry_after": "(int) Minimum time to wait before retrying a failed request",
|
||||||
|
}
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (!accessToken || !userRole || !userID) {
|
if (!accessToken || !userRole || !userID) {
|
||||||
return;
|
return;
|
||||||
|
@ -108,6 +118,7 @@ const GeneralSettings: React.FC<GeneralSettingsPageProps> = ({
|
||||||
<TableRow key={param}>
|
<TableRow key={param}>
|
||||||
<TableCell>
|
<TableCell>
|
||||||
<Text>{param}</Text>
|
<Text>{param}</Text>
|
||||||
|
<p style={{fontSize: '0.65rem', color: '#808080', fontStyle: 'italic'}} className="mt-1">{paramExplanation[param]}</p>
|
||||||
</TableCell>
|
</TableCell>
|
||||||
<TableCell>
|
<TableCell>
|
||||||
<TextInput
|
<TextInput
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue