mirror of
https://github.com/StanGirard/quivr.git
synced 2024-12-22 02:41:51 +03:00
6ff9309082
* feat(axios): add global manager * feat: add config page * feat(axios): add backendUrl overwrite * feat(brainConfig): add supabase url overwrite * feat(chat): change model config logic + add more model * feat: add openai and anthropic api key overwrite * feat(config): save config in local storage * feat(config): add reset button * feat: move vertexai to config page * ui: add brain config icon
12 lines
228 B
TypeScript
12 lines
228 B
TypeScript
export const setEmptyStringsUndefined = (
|
|
obj: Record<string, unknown>
|
|
): Record<string, unknown> => {
|
|
Object.keys(obj).forEach((key) => {
|
|
if (obj[key] === "") {
|
|
obj[key] = undefined;
|
|
}
|
|
});
|
|
|
|
return obj;
|
|
};
|