studio/chat: relax presence_penalty to optional on OpenAIChatCompletionsRequest

Followup to 1fbf445a — chat-adapter now omits presence_penalty for
providers that do not accept it (Anthropic / DeepSeek), but the
request type still required it as a non-optional number, breaking
tsc. The backend pydantic model already defaults presence_penalty
to 0, so making it optional client-side matches reality.
This commit is contained in:
Roland Tannous 2026-05-12 09:55:24 +04:00
commit 2863d64602

View file

@ -196,7 +196,7 @@ export interface OpenAIChatCompletionsRequest {
top_k?: number;
min_p?: number;
repetition_penalty?: number;
presence_penalty: number;
presence_penalty?: number;
image_base64?: string;
audio_base64?: string;
use_adapter?: boolean | string | null;