feat(webui): show persisted fallback preset on replies (NAN-133)
This commit is contained in:
1 parent
db675a43b6
commit
8d0430c761
43 files changed
+919
-95
No files matched your search
@@ -270,6 +270,15 @@ function hasValidProjectionMetadata(value: Record<string, unknown>): boolean {
|
||||
"user", "reasoning", "activity", "answer", "complete",
|
||||
].includes(String(value.turn_phase)))
|
||||
&& (value.turn_seq === undefined || typeof value.turn_seq === "number")
|
||||
&& (
|
||||
value.response_sources === undefined
|
||||
|| (isRecordArray(value.response_sources) && value.response_sources.every((source) => (
|
||||
typeof source.provider === "string" && source.provider.length > 0
|
||||
&& typeof source.model === "string" && source.model.length > 0
|
||||
&& typeof source.preset === "string" && source.preset.length > 0
|
||||
&& (source.fallback === undefined || typeof source.fallback === "boolean")
|
||||
)))
|
||||
)
|
||||
&& (
|
||||
value.source === undefined
|
||||
|| (
|
||||
|
||||
Reference in new issue
Block a user