mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 18:54:30 +00:00
fix linting ui
This commit is contained in:
parent
f6c2b86903
commit
c8468b71c8
1 changed files with 4 additions and 0 deletions
|
@ -86,6 +86,10 @@ const ChatUI: React.FC<ChatUIProps> = ({
|
||||||
// Fetch model info and set the default selected model
|
// Fetch model info and set the default selected model
|
||||||
const loadModels = async () => {
|
const loadModels = async () => {
|
||||||
try {
|
try {
|
||||||
|
if (!userApiKey) {
|
||||||
|
console.log("userApiKey is missing");
|
||||||
|
return;
|
||||||
|
}
|
||||||
const uniqueModels = await fetchAvailableModels(
|
const uniqueModels = await fetchAvailableModels(
|
||||||
userApiKey,
|
userApiKey,
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue