increasing max tokens
All checks were successful
Recommender Build and Deploy (internal) / Build Recommender Image (push) Successful in 4m4s
Recommender Build and Deploy (internal) / Deploy Recommender (internal) (push) Successful in 18s

This commit is contained in:
2026-04-02 21:31:34 -03:00
parent 98860835d9
commit 0c704cf2f6
4 changed files with 4 additions and 0 deletions

View File

@@ -40,6 +40,7 @@ export async function runCurator(
const response = await openai.responses.parse({
model: defaultModel,
temperature: 0.5,
max_completion_tokens: 16384,
...serviceOptions,
...(canSearch ? { tools: [{ type: 'web_search' as const }] } : {}),
text: { format: zodTextFormat(CuratorSchema, "shows") },

View File

@@ -47,6 +47,7 @@ export async function runRanking(
const response = await openai.responses.parse({
model: defaultModel,
temperature: 0.2,
max_completion_tokens: 16384,
...serviceOptions,
text: { format: zodTextFormat(RankingSchema, "ranking") },
instructions: `You are a ${mediaLabel} ranking critic. Assign each ${mediaLabel} to exactly one of five confidence tags based on how well it matches the user's preferences.

View File

@@ -25,6 +25,7 @@ export async function runRetrieval(
const response = await openai.responses.parse({
model: defaultModel,
temperature: 0.9,
max_completion_tokens: 16384,
...serviceOptions,
...(canSearch ? { tools: [{ type: 'web_search' as const }] } : {}),
text: { format: zodTextFormat(RetrievalSchema, "candidates") },

View File

@@ -30,6 +30,7 @@ async function runValidatorChunk(
const response = await openai.responses.parse({
model: defaultModel,
temperature: 0.1,
max_completion_tokens: 16384,
...serviceOptions,
...(supportsWebSearch ? { tools: [{ type: 'web_search' as const }] } : {}),
text: { format: zodTextFormat(ValidatorSchema, 'validation') },