diff --git a/packages/stage/src/components/Live2DViewer.vue b/packages/stage/src/components/Live2DViewer.vue index 207dad6..108498c 100644 --- a/packages/stage/src/components/Live2DViewer.vue +++ b/packages/stage/src/components/Live2DViewer.vue @@ -69,7 +69,7 @@ function setScale(model: Ref | undefined>) { let offsetFactor = 2 if (isMobile.value) { - offsetFactor = 3.5 + offsetFactor = 2.5 } const heightScale = canvasHeight.value * 0.95 / model.value.height * offsetFactor diff --git a/packages/stage/src/components/MainStage.vue b/packages/stage/src/components/MainStage.vue index 7df6ec6..16a17e8 100644 --- a/packages/stage/src/components/MainStage.vue +++ b/packages/stage/src/components/MainStage.vue @@ -26,7 +26,8 @@ const nowSpeakingAvatarBorderOpacityMin = 30 const nowSpeakingAvatarBorderOpacityMax = 100 const { elevenLabsApiKey, openAiApiBaseURL, openAiApiKey } = storeToRefs(useSettings()) -const openAIModel = useLocalStorage<{ id: string, name?: string }>('openai-model', { id: 'openai/gpt-3.5-turbo', name: 'OpenAI GPT3.5 Turbo' }) +const openAIModel = useLocalStorage<{ id: string, name?: string }>('settings/llm/openai/model', { id: 'openai/gpt-3.5-turbo', name: 'OpenAI GPT3.5 Turbo' }) +const stageView = useLocalStorage('settings/stage/view/model-renderer', '2d') const { streamSpeech, @@ -36,7 +37,6 @@ const { const { audioContext, calculateVolume } = useAudioContext() const { process } = useMarkdown() -const selectedStageView = ref('2d') const listening = ref(false) const live2DViewerRef = ref<{ setMotion: (motionName: string) => Promise }>() const supportedModels = ref<{ id: string, name?: string }[]>([]) @@ -282,13 +282,13 @@ onUnmounted(() => { >