mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 18:54:30 +00:00
fix inserting cache_control_injection_points
This commit is contained in:
parent
c0176941d0
commit
7649566034
2 changed files with 2 additions and 2 deletions
|
@ -61,7 +61,7 @@ const CacheControlSettings: React.FC<CacheControlSettingsProps> = ({
|
||||||
</Text>
|
</Text>
|
||||||
|
|
||||||
<Form.List
|
<Form.List
|
||||||
name="cache_control_points"
|
name="cache_control_injection_points"
|
||||||
initialValue={[{ location: "message" }]}
|
initialValue={[{ location: "message" }]}
|
||||||
>
|
>
|
||||||
{(fields, { add, remove }) => (
|
{(fields, { add, remove }) => (
|
||||||
|
|
|
@ -60,7 +60,7 @@ export const prepareModelAddRequest = async (
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
// Skip the custom_pricing and pricing_model fields as they're only used for UI control
|
// Skip the custom_pricing and pricing_model fields as they're only used for UI control
|
||||||
if (key === 'custom_pricing' || key === 'pricing_model') {
|
if (key === 'custom_pricing' || key === 'pricing_model' || key === 'cache_control') {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (key == "model_name") {
|
if (key == "model_name") {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue