forked from phoenix/litellm-mirror
fix: fix linting error
This commit is contained in:
parent
74d59d74d4
commit
fc30b20c6e
2 changed files with 13 additions and 1 deletions
|
@ -212,7 +212,7 @@ async def user_api_key_auth_websocket(websocket: WebSocket):
|
||||||
# return string as bytes
|
# return string as bytes
|
||||||
return return_string.encode()
|
return return_string.encode()
|
||||||
|
|
||||||
request.body = return_body
|
request.body = return_body # type: ignore
|
||||||
|
|
||||||
# Extract the Authorization header
|
# Extract the Authorization header
|
||||||
authorization = websocket.headers.get("authorization")
|
authorization = websocket.headers.get("authorization")
|
||||||
|
|
|
@ -24,6 +24,7 @@ import {
|
||||||
Icon,
|
Icon,
|
||||||
BarChart,
|
BarChart,
|
||||||
TextInput,
|
TextInput,
|
||||||
|
Textarea,
|
||||||
} from "@tremor/react";
|
} from "@tremor/react";
|
||||||
import { Select as Select3, SelectItem, MultiSelect, MultiSelectItem } from "@tremor/react";
|
import { Select as Select3, SelectItem, MultiSelect, MultiSelectItem } from "@tremor/react";
|
||||||
import {
|
import {
|
||||||
|
@ -40,6 +41,7 @@ import {
|
||||||
} from "antd";
|
} from "antd";
|
||||||
|
|
||||||
import { CopyToClipboard } from "react-copy-to-clipboard";
|
import { CopyToClipboard } from "react-copy-to-clipboard";
|
||||||
|
import TextArea from "antd/es/input/TextArea";
|
||||||
|
|
||||||
const { Option } = Select;
|
const { Option } = Select;
|
||||||
const isLocal = process.env.NODE_ENV === "development";
|
const isLocal = process.env.NODE_ENV === "development";
|
||||||
|
@ -438,6 +440,16 @@ const ViewKeyTable: React.FC<ViewKeyTableProps> = ({
|
||||||
>
|
>
|
||||||
<InputNumber step={1} precision={1} width={200} />
|
<InputNumber step={1} precision={1} width={200} />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
|
<Form.Item
|
||||||
|
label="Metadata"
|
||||||
|
name="metadata"
|
||||||
|
initialValue={token.metadata}
|
||||||
|
>
|
||||||
|
<TextArea
|
||||||
|
value={String(token.metadata)}
|
||||||
|
rows={10}
|
||||||
|
/>
|
||||||
|
</Form.Item>
|
||||||
</>
|
</>
|
||||||
<div style={{ textAlign: "right", marginTop: "10px" }}>
|
<div style={{ textAlign: "right", marginTop: "10px" }}>
|
||||||
<Button2 htmlType="submit">Edit Key</Button2>
|
<Button2 htmlType="submit">Edit Key</Button2>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue