fix: baseurl not watched
This commit is contained in:
@@ -242,10 +242,10 @@ async function onSendMessage(sendingMessage: string) {
|
||||
messageInput.value = ''
|
||||
}
|
||||
|
||||
watch(openAiApiKey, async (value) => {
|
||||
watch([openAiApiBaseURL, openAiApiKey], async ([baseUrl, apiKey]) => {
|
||||
setupOpenAI({
|
||||
apiKey: value,
|
||||
baseURL: openAiApiBaseURL.value,
|
||||
apiKey,
|
||||
baseURL: baseUrl,
|
||||
})
|
||||
|
||||
const fetchedModels = await models()
|
||||
|
||||
Reference in New Issue
Block a user