Merge branch 'main' into feat/rag-pipeline

pull/21398/head
zxhlyh 1 year ago
commit b730d153ea

@ -897,6 +897,7 @@ class ProviderConfiguration(BaseModel):
) )
except Exception as ex: except Exception as ex:
logger.warning(f"get custom model schema failed, {ex}") logger.warning(f"get custom model schema failed, {ex}")
continue
if not custom_model_schema: if not custom_model_schema:
continue continue
@ -909,9 +910,7 @@ class ProviderConfiguration(BaseModel):
custom_model_schema.model_type in model_setting_map custom_model_schema.model_type in model_setting_map
and custom_model_schema.model in model_setting_map[custom_model_schema.model_type] and custom_model_schema.model in model_setting_map[custom_model_schema.model_type]
): ):
model_setting = model_setting_map[custom_model_schema.model_type][ model_setting = model_setting_map[custom_model_schema.model_type][custom_model_schema.model]
custom_model_schema.model
]
if model_setting.enabled is False: if model_setting.enabled is False:
status = ModelStatus.DISABLED status = ModelStatus.DISABLED

@ -37,13 +37,8 @@ export type WorkflowSliceShape = {
export const createWorkflowSlice: StateCreator<WorkflowSliceShape> = set => ({ export const createWorkflowSlice: StateCreator<WorkflowSliceShape> = set => ({
workflowRunningData: undefined, workflowRunningData: undefined,
setWorkflowRunningData: workflowRunningData => set(() => ({ workflowRunningData })), setWorkflowRunningData: workflowRunningData => set(() => ({ workflowRunningData })),
clipboardElements: (() => { clipboardElements: [],
const storedElements = localStorage.getItem('clipboard_elements') setClipboardElements: clipboardElements => set(() => ({ clipboardElements })),
return storedElements ? JSON.parse(storedElements) : []
})(),
setClipboardElements: (clipboardElements) => {
localStorage.setItem('clipboard_elements', JSON.stringify(clipboardElements))
},
selection: null, selection: null,
setSelection: selection => set(() => ({ selection })), setSelection: selection => set(() => ({ selection })),
bundleNodeSize: null, bundleNodeSize: null,

Loading…
Cancel
Save