feat: add interface params

This commit is contained in:
Swayam 2025-10-07 04:59:01 +05:30
parent 22de2f2045
commit b7c68277f6
4 changed files with 204 additions and 0 deletions

View file

@ -39,6 +39,7 @@ import {
} from "@/components/ui/select";
import { LLM_PROVIDERS } from "@/contracts/enums/llm-providers";
import { type CreateLLMConfig, type LLMConfig, useLLMConfigs } from "@/hooks/use-llm-configs";
import InferenceParamsEditor from "../inference-params-editor";
export function ModelConfigManager() {
const {
@ -543,6 +544,16 @@ export function ModelConfigManager() {
/>
</div>
{/* Optional Inference Parameters */}
<div className="pt-4">
<InferenceParamsEditor
params={formData.litellm_params || {}}
setParams={(newParams) =>
setFormData((prev) => ({ ...prev, litellm_params: newParams }))
}
/>
</div>
<div className="flex gap-2 pt-4">
<Button type="submit" disabled={isSubmitting}>
{isSubmitting