-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
feat(stage-ui): process for reasoning models #859
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
nekomeowww
merged 31 commits into
moeru-ai:main
from
TECozens:consciousness-module-categorisation
Jan 5, 2026
Merged
Changes from 11 commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
9b69622
feature(includes TTS ignore thought tags)
TECozens 095aed4
Reverting some changes
TECozens 481ea09
Final Commit Before Cleanup
TECozens 675948f
Merge branch 'main' of https://github.com/moeru-ai/airi into consciou…
TECozens e3eed35
Final cleanup and use-chat helper functions
TECozens dcfe785
See how this does...
TECozens 59976e4
Revert "See how this does..."
TECozens 2ff0aca
Happy New Year
TECozens e40fb4b
Update packages/stage-ui/src/composables/llmmarkerParser.ts
TECozens 23a0a96
Fixes
TECozens 7138289
Merge branch 'consciousness-module-categorisation' of https://github.…
TECozens 65cec6b
Added Rehype
TECozens 0b83f92
Simple redundancy fixes.
TECozens a77e572
Attempt at performance improvement
TECozens 2e6f211
Merge branch 'main' of https://github.com/moeru-ai/airi into consciou…
TECozens e01e239
Update packages/stage-ui/src/composables/responseCategorizer.ts
TECozens dfa04cc
Update packages/stage-ui/src/composables/responseCategorizer.ts
TECozens b7bf2bc
Fix renaming files and directories to match codebase patterns
TECozens 0685638
Merge branch 'consciousness-module-categorisation' of https://github.…
TECozens 290898e
Rename ChatResponseCategorisation -> ChatResponsePart
TECozens 6336884
reverting this change , categorisation is already stored somewhere else
TECozens e3d75ce
Committing before merge
TECozens 5075fcc
Merge branch 'main' of https://github.com/moeru-ai/airi into consciou…
TECozens 22d2193
Fixing some packages issues :)
TECozens 1c64ecd
Added Unit Tests
TECozens 97d44c5
updated with some logs in the unit tests
TECozens e1908a7
Merge branch 'main' into consciousness-module-categorisation
shinohara-rin 0b3c10b
Include i18n support
TECozens 749467c
Merge branch 'consciousness-module-categorisation' of https://github.…
TECozens e9f6572
Merge branch 'main' into consciousness-module-categorisation
nekomeowww 79ab50f
Merge branch 'main' into consciousness-module-categorisation
nekomeowww File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 53 additions & 0 deletions
53
packages/stage-ui/src/components/scenarios/chat/ChatResponseCategorization.vue
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,53 @@ | ||
| <script setup lang="ts"> | ||
| import type { ChatAssistantMessage } from '../../../types/chat' | ||
|
|
||
| import { computed } from 'vue' | ||
|
|
||
| import MarkdownRenderer from '../../markdown/MarkdownRenderer.vue' | ||
| import Collapsable from '../../misc/Collapsable.vue' | ||
|
|
||
| const props = defineProps<{ | ||
| message: ChatAssistantMessage | ||
| variant?: 'desktop' | 'mobile' | ||
| }>() | ||
|
|
||
| const hasReasoning = computed(() => !!props.message.categorization?.reasoning?.trim()) | ||
|
|
||
| const containerClasses = computed(() => [ | ||
| 'mt-2', | ||
| props.variant === 'mobile' ? 'text-xs' : 'text-sm', | ||
| ]) | ||
| </script> | ||
|
|
||
| <template> | ||
| <div v-if="hasReasoning" :class="containerClasses" flex="~ col" gap-1> | ||
| <Collapsable v-if="hasReasoning" :default="false"> | ||
TECozens marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| <template #trigger="slotProps"> | ||
| <button | ||
| class="w-full flex items-center justify-between rounded-lg bg-neutral-100/50 px-2 py-1 text-xs text-neutral-600 outline-none transition-all duration-200 dark:bg-neutral-800/50 hover:bg-neutral-200/50 dark:text-neutral-400 dark:hover:bg-neutral-700/50" | ||
| @click="slotProps.setVisible(!slotProps.visible)" | ||
| > | ||
| <div flex="~ items-center" gap-1.5> | ||
| <div i-solar:lightbulb-bolt-bold-duotone size-3.5 text-amber-500 dark:text-amber-400 /> | ||
| <span font-medium>Reasoning</span> | ||
| </div> | ||
| <div | ||
| i-solar:alt-arrow-down-linear | ||
| size-3 | ||
| transition="transform duration-200" | ||
| :class="{ 'rotate-180': slotProps.visible }" | ||
| /> | ||
| </button> | ||
| </template> | ||
| <div | ||
| class="mt-1 border border-neutral-200 rounded-md bg-neutral-50/80 px-2 py-1.5 dark:border-neutral-700 dark:bg-neutral-900/80" | ||
| > | ||
| <MarkdownRenderer | ||
| :content="message.categorization!.reasoning!" | ||
TECozens marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| class="break-words" | ||
| text="xs neutral-700 dark:neutral-300" | ||
| /> | ||
| </div> | ||
| </Collapsable> | ||
| </div> | ||
| </template> | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.