mirror of
https://github.com/tiennm99/ccs.git
synced 2026-07-16 06:16:37 +00:00
fix(ui): accept partial raw model records
- allow raw JSON model arrays with partial fields to format safely - keep the requested=upstream review fixes compatible with raw editor input Refs #941
This commit is contained in:
@@ -165,7 +165,7 @@ export function getRequestedUpstreamModelRuleErrors(value: string): string[] {
|
||||
* Format stored provider config back into the UI-facing requested=upstream form.
|
||||
*/
|
||||
export function formatRequestedUpstreamModelRules(
|
||||
models: AiProviderModelAlias[] | null | undefined
|
||||
models: Array<Partial<AiProviderModelAlias>> | null | undefined
|
||||
): string {
|
||||
return (models || [])
|
||||
.map((item) => {
|
||||
|
||||
Reference in New Issue
Block a user