fix: baseurl not watched

This commit is contained in:
Neko Ayaka
2024-12-03 21:42:37 +08:00
parent c1d9284d68
commit 5546d105f1
+3 -3
View File
@@ -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()