fix inserting cache_control_injection_points

This commit is contained in:
Ishaan Jaff 2025-04-14 18:42:10 -07:00
parent c0176941d0
commit 7649566034
2 changed files with 2 additions and 2 deletions

View file

@ -61,7 +61,7 @@ const CacheControlSettings: React.FC<CacheControlSettingsProps> = ({
</Text>
<Form.List
name="cache_control_points"
name="cache_control_injection_points"
initialValue={[{ location: "message" }]}
>
{(fields, { add, remove }) => (

View file

@ -60,7 +60,7 @@ export const prepareModelAddRequest = async (
continue;
}
// 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;
}
if (key == "model_name") {