[Update] UI: Add Plamo, OpenAI and Gemini authentication key components and integrate them into the Translation section.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import * as stores from "@store";
|
||||
import { useStdoutToPython } from "@useStdoutToPython";
|
||||
import { useNotificationStatus } from "@logics_common";
|
||||
import { arrayToObject } from "@utils";
|
||||
import { arrayToObject, arrayToIdLabel } from "@utils";
|
||||
|
||||
const transformResponse = (transformName, payload) => {
|
||||
if (!transformName) return payload;
|
||||
@@ -9,6 +9,8 @@ const transformResponse = (transformName, payload) => {
|
||||
switch (transformName) {
|
||||
case "arrayToObject":
|
||||
return arrayToObject(payload);
|
||||
case "arrayToIdLabel":
|
||||
return arrayToIdLabel(payload);
|
||||
default:
|
||||
return payload;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user