mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 02:34:29 +00:00
fix typo
This commit is contained in:
parent
d55d37ad99
commit
f6c2b86903
1 changed files with 4 additions and 5 deletions
|
@ -77,10 +77,9 @@ const ChatUI: React.FC<ChatUIProps> = ({
|
|||
const chatEndRef = useRef<HTMLDivElement>(null);
|
||||
|
||||
useEffect(() => {
|
||||
let useApiKey = apiKeySource === 'session' ? accessToken : apiKey;
|
||||
console.log("useApiKey:", useApiKey);
|
||||
if (!useApiKey || !token || !userRole || !userID) {
|
||||
console.log("useApiKey or token or userRole or userID is missing = ", useApiKey, token, userRole, userID);
|
||||
let userApiKey = apiKeySource === 'session' ? accessToken : apiKey;
|
||||
if (!userApiKey || !token || !userRole || !userID) {
|
||||
console.log("userApiKey or token or userRole or userID is missing = ", userApiKey, token, userRole, userID);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -88,7 +87,7 @@ const ChatUI: React.FC<ChatUIProps> = ({
|
|||
const loadModels = async () => {
|
||||
try {
|
||||
const uniqueModels = await fetchAvailableModels(
|
||||
useApiKey,
|
||||
userApiKey,
|
||||
);
|
||||
|
||||
console.log("Fetched models:", uniqueModels);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue