Skip to content

Commit

Permalink
fix: error messages on invalid requests
Browse files Browse the repository at this point in the history
  • Loading branch information
Vali-98 committed Dec 1, 2024
1 parent 84476a8 commit eec1551
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions constants/API/APIBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const buildAndSendRequest = async () => {
.values.find((item, index) => index === APIState.useAPIState.getState().activeIndex)

if (!requestValues) {
Logger.log('No API Configuration found', true)
Logger.log(`No Active API`, true)
Chats.useChat.getState().stopGenerating()
return
}
Expand All @@ -28,7 +28,7 @@ export const buildAndSendRequest = async () => {

const config = configs[0]
if (!config) {
Logger.log('API Configuration not found!')
Logger.log(`Configuration "${requestValues?.configName}" found`, true)
Chats.useChat.getState().stopGenerating()
return
}
Expand Down

0 comments on commit eec1551

Please sign in to comment.