Skip to content

Commit

Permalink
fix: baseurl not watched
Browse files Browse the repository at this point in the history
  • Loading branch information
nekomeowww committed Dec 3, 2024
1 parent c1d9284 commit 5546d10
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/stage/src/components/MainStage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 5546d10

Please sign in to comment.