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.
Parameters
Section titled “Parameters”Record<string, unknown>
Parsed chat request body. Mutated.
extra?
Section titled “extra?”readonly string[] = []
Additional field names to drop, for a workspace or endpoint that rejects something not yet in UNSUPPORTED_CHAT_FIELDS.
Returns
Section titled “Returns”string[]