mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 10:44:24 +00:00
Litellm dev 02 18 2025 p1 (#8630)
* fix(filter.tsx): align filter icon to button correctly * style: style improvements for filter icon * style(filter.tsx): cleanup filter box * style(filter.tsx): style improvement for team id box on filter * Fix timeout bug for SageMaker Messages API completion (#8635) * fix(model_cost_map): fix json parse error on model cost map + add unit test (#8629) Fixes https://github.com/BerriAI/litellm/pull/8619#issuecomment-2666693045 * Fix timeout bug for SageMaker Messages API completion --------- Co-authored-by: Krish Dholakia <krrishdholakia@gmail.com> --------- Co-authored-by: Bobby Lindsey <bobbywlindsey@users.noreply.github.com>
This commit is contained in:
parent
d1ba04d9d9
commit
2b71973b17
3 changed files with 11 additions and 5 deletions
|
@ -2575,6 +2575,7 @@ def completion( # type: ignore # noqa: PLR0915
|
|||
print_verbose=print_verbose,
|
||||
optional_params=optional_params,
|
||||
litellm_params=litellm_params,
|
||||
timeout=timeout,
|
||||
custom_prompt_dict=custom_prompt_dict,
|
||||
logger_fn=logger_fn,
|
||||
encoding=encoding,
|
||||
|
|
|
@ -3,6 +3,7 @@ model_list:
|
|||
litellm_params:
|
||||
model: openai/gpt-3.5-turbo
|
||||
api_key: os.environ/OPENAI_API_KEY
|
||||
api_base: http://0.0.0.0:8090
|
||||
|
||||
litellm_settings:
|
||||
callbacks: ["prometheus"]
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import React, { useState, useRef, useEffect } from 'react';
|
||||
import { Button, Input, Dropdown, MenuProps } from 'antd';
|
||||
import { Card } from '@tremor/react';
|
||||
import { Card, Button as TremorButton } from '@tremor/react';
|
||||
import {
|
||||
FilterIcon,
|
||||
XIcon,
|
||||
|
@ -90,15 +90,18 @@ const FilterComponent: React.FC<FilterComponentProps> = ({
|
|||
|
||||
return (
|
||||
<div className="relative" ref={filtersRef}>
|
||||
<Button
|
||||
icon={<FilterIcon className="h-4 w-4" />}
|
||||
<TremorButton
|
||||
icon={FilterIcon}
|
||||
onClick={() => setShowFilters(!showFilters)}
|
||||
variant="secondary"
|
||||
size='xs'
|
||||
className="flex items-center pr-2"
|
||||
>
|
||||
{buttonLabel}
|
||||
</Button>
|
||||
</TremorButton>
|
||||
|
||||
{showFilters && (
|
||||
<Card className="absolute left-0 mt-2 w-96 z-50">
|
||||
<Card className="absolute left-0 mt-2 w-96 z-50 border border-gray-200 shadow-lg">
|
||||
<div className="flex flex-col gap-4">
|
||||
<div className="flex items-center gap-2">
|
||||
<span className="text-sm font-medium">Where</span>
|
||||
|
@ -129,6 +132,7 @@ const FilterComponent: React.FC<FilterComponentProps> = ({
|
|||
placeholder="Enter value..."
|
||||
value={tempValues[selectedFilter] || ''}
|
||||
onChange={(e) => handleFilterChange(e.target.value)}
|
||||
className="px-3 py-1.5 border rounded-md text-sm flex-1 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500"
|
||||
suffix={
|
||||
tempValues[selectedFilter] ? (
|
||||
<XIcon
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue