mirror of
https://github.com/open-webui/open-webui
synced 2024-11-28 23:13:30 +00:00
refac: pipelines
This commit is contained in:
parent
5b01d7994a
commit
2dbbd1bc6f
@ -40,8 +40,10 @@
|
||||
const pipeline = pipelines[selectedPipelineIdx];
|
||||
|
||||
if (pipeline && (pipeline?.valves ?? false)) {
|
||||
if (valves?.pipelines ?? false) {
|
||||
valves.pipelines = valves.pipelines.split(',').map((v) => v.trim());
|
||||
for (const property in valves_spec.properties) {
|
||||
if (valves_spec.properties[property]?.type === 'array') {
|
||||
valves[property] = valves[property].split(',').map((v) => v.trim());
|
||||
}
|
||||
}
|
||||
|
||||
const res = await updatePipelineValves(
|
||||
@ -79,8 +81,10 @@
|
||||
selectedPipelinesUrlIdx
|
||||
);
|
||||
|
||||
if (valves?.pipelines ?? false) {
|
||||
valves.pipelines = valves.pipelines.join(',');
|
||||
for (const property in valves_spec.properties) {
|
||||
if (valves_spec.properties[property]?.type === 'array') {
|
||||
valves[property] = valves[property].join(',');
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user