mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-06 02:48:13 +00:00
adjusting hook to use /config/field/update
This commit is contained in:
parent
b0973b3ac8
commit
876c4cfd0f
1 changed files with 4 additions and 4 deletions
|
|
@ -15,7 +15,7 @@ const performStoreModelInDB = async (
|
|||
params: StoreModelInDBParams
|
||||
): Promise<StoreModelInDBResponse> => {
|
||||
const proxyBaseUrl = getProxyBaseUrl();
|
||||
const url = proxyBaseUrl ? `${proxyBaseUrl}/config/update` : `/config/update`;
|
||||
const url = proxyBaseUrl ? `${proxyBaseUrl}/config/field/update` : `/config/field/update`;
|
||||
|
||||
const response = await fetch(url, {
|
||||
method: "POST",
|
||||
|
|
@ -24,9 +24,9 @@ const performStoreModelInDB = async (
|
|||
"Content-Type": "application/json",
|
||||
},
|
||||
body: JSON.stringify({
|
||||
general_settings: {
|
||||
store_model_in_db: params.store_model_in_db,
|
||||
},
|
||||
field_name: "store_model_in_db",
|
||||
field_value: params.store_model_in_db,
|
||||
config_type: "general_settings",
|
||||
}),
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue