Refactor LLM route-first provider API (#28523)
This commit is contained in:
parent
5381795844
commit
41f6daf96a
87 changed files with 2436 additions and 1506 deletions
3
packages/llm/src/utils/record.ts
Normal file
3
packages/llm/src/utils/record.ts
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
/** Plain-record narrowing. Excludes arrays so JSON object checks don't accept tuples as key/value bags. */
|
||||
export const isRecord = (value: unknown): value is Record<string, unknown> =>
|
||||
typeof value === "object" && value !== null && !Array.isArray(value)
|
||||
Loading…
Add table
Add a link
Reference in a new issue