feat(release): prepare 1.1.0 candidate
This commit is contained in:
parent
5a34f66981
commit
5205dcdfa9
736 changed files with 115667 additions and 12203 deletions
|
|
@ -20,23 +20,26 @@ interface RealtimeTokenRequest {
|
|||
instructions?: string
|
||||
}
|
||||
|
||||
/** 티어별 허용 Realtime 모델 — free 차단, pro는 mini만, pro_plus는 풀 모델까지 */
|
||||
/** 티어별 허용 Realtime 모델 — free 차단, pro는 mini만, 상위 티어는 풀 모델까지 */
|
||||
const TIER_MODELS: Record<Tier, string[]> = {
|
||||
free: [],
|
||||
pro: ['gpt-realtime-2.1-mini'],
|
||||
pro_plus: ['gpt-realtime-2.1', 'gpt-realtime-2.1-mini'],
|
||||
team: ['gpt-realtime-2.1', 'gpt-realtime-2.1-mini'],
|
||||
enterprise: ['gpt-realtime-2.1', 'gpt-realtime-2.1-mini'],
|
||||
}
|
||||
|
||||
const DEFAULT_MODEL: Record<Tier, string | null> = {
|
||||
free: null,
|
||||
pro: 'gpt-realtime-2.1-mini',
|
||||
pro_plus: 'gpt-realtime-2.1',
|
||||
team: 'gpt-realtime-2.1',
|
||||
enterprise: 'gpt-realtime-2.1',
|
||||
}
|
||||
|
||||
const DEFAULT_VOICE = 'marin'
|
||||
const MAX_INSTRUCTIONS_LENGTH = 2000
|
||||
|
||||
// @ts-expect-error — Deno 런타임 전역
|
||||
Deno.serve(async (req: Request) => {
|
||||
const preflight = handleCorsPreflightRequest(req)
|
||||
if (preflight) return preflight
|
||||
|
|
@ -110,7 +113,6 @@ Deno.serve(async (req: Request) => {
|
|||
)
|
||||
}
|
||||
|
||||
// @ts-expect-error — Deno.env
|
||||
const openaiKey = Deno.env.get('OPENAI_API_KEY') ?? ''
|
||||
if (!openaiKey) {
|
||||
return new Response(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue