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:
parent
e5831cb3a8
commit
2863d64602
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue