mirror of
https://github.com/memohai/Memoh.git
synced 2026-04-25 07:00:48 +09:00
fix(web): hide reasoning efforts on model cards
Keep provider model cards focused on high-level model capabilities instead of exposing per-model reasoning effort options in the summary view.
This commit is contained in:
@@ -35,14 +35,6 @@
|
|||||||
</ItemTitle>
|
</ItemTitle>
|
||||||
<ItemDescription class="gap-2 flex flex-wrap items-center mt-3 min-h-6">
|
<ItemDescription class="gap-2 flex flex-wrap items-center mt-3 min-h-6">
|
||||||
<ModelCapabilities :compatibilities="model.config?.compatibilities || []" />
|
<ModelCapabilities :compatibilities="model.config?.compatibilities || []" />
|
||||||
<Badge
|
|
||||||
v-for="effort in reasoningEfforts"
|
|
||||||
:key="effort"
|
|
||||||
variant="secondary"
|
|
||||||
class="text-xs"
|
|
||||||
>
|
|
||||||
{{ effort }}
|
|
||||||
</Badge>
|
|
||||||
<ContextWindowBadge :context-window="model.config?.context_window" />
|
<ContextWindowBadge :context-window="model.config?.context_window" />
|
||||||
<span
|
<span
|
||||||
v-if="testResult && testResult.status !== 'ok' && testResult.message"
|
v-if="testResult && testResult.status !== 'ok' && testResult.message"
|
||||||
@@ -112,10 +104,6 @@ import { postModelsByIdTest } from '@memohai/sdk'
|
|||||||
import type { ModelsGetResponse, ModelsTestResponse } from '@memohai/sdk'
|
import type { ModelsGetResponse, ModelsTestResponse } from '@memohai/sdk'
|
||||||
import { ref, computed } from 'vue'
|
import { ref, computed } from 'vue'
|
||||||
|
|
||||||
type ModelConfigWithReasoning = {
|
|
||||||
reasoning_efforts?: string[]
|
|
||||||
}
|
|
||||||
|
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
model: ModelsGetResponse
|
model: ModelsGetResponse
|
||||||
deleteLoading: boolean
|
deleteLoading: boolean
|
||||||
@@ -128,7 +116,6 @@ defineEmits<{
|
|||||||
|
|
||||||
const testLoading = ref(false)
|
const testLoading = ref(false)
|
||||||
const testResult = ref<ModelsTestResponse | null>(null)
|
const testResult = ref<ModelsTestResponse | null>(null)
|
||||||
const reasoningEfforts = computed(() => ((props.model.config as ModelConfigWithReasoning | undefined)?.reasoning_efforts ?? []))
|
|
||||||
|
|
||||||
const typeIcon = computed(() => {
|
const typeIcon = computed(() => {
|
||||||
return props.model.type === 'embedding' ? Binary : MessageSquare
|
return props.model.type === 'embedding' ? Binary : MessageSquare
|
||||||
|
|||||||
Reference in New Issue
Block a user