Skip to content

Function: stripUnsupportedChatFields()

stripUnsupportedChatFields(body, extra?): string[]

Delete the fields Databricks rejects from a chat request body, in place. Returns the names actually removed so a caller can log what it dropped.

Record<string, unknown>

Parsed chat request body. Mutated.

readonly string[] = []

Additional field names to drop, for a workspace or endpoint that rejects something not yet in UNSUPPORTED_CHAT_FIELDS.

string[]