feat: ship Wave 5-6 multi-surface hygiene, optimization, and bug fixes
This commit is contained in:
parent
01ef3293cf
commit
66b6b45ba9
399 changed files with 17828 additions and 11330 deletions
|
|
@ -16,6 +16,7 @@
|
|||
// when the lease expired (or the claim predates the lease) and the allowance
|
||||
// is spent by then; that maps to markFailed('quota_exceeded') + 429.
|
||||
|
||||
import { isRecord } from '../_shared/core-contract.generated.ts'
|
||||
import { buildMeetingDocumentSystemPrompt } from '../_shared/generative-ai-safety.ts'
|
||||
import {
|
||||
type GenerateMeetingDocumentRequest,
|
||||
|
|
@ -101,9 +102,6 @@ export interface GenerationDeps {
|
|||
|
||||
export const PROVIDER_MAX_TOKENS = 4096
|
||||
|
||||
function isRecord(value: unknown): value is Record<string, unknown> {
|
||||
return typeof value === 'object' && value !== null && !Array.isArray(value)
|
||||
}
|
||||
|
||||
function result(status: number, body: Record<string, unknown>): GenerationHttpResult {
|
||||
return { status, body }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue