perf: upgrade OpenAI models gpt-4o/4o-mini -> gpt-5-nano/gpt-5-mini
deploy / deploy (push) Has been cancelled
deploy / deploy (push) Has been cancelled
- openai.model.name: gpt-4o-mini -> gpt-5-nano (bash.05/bash.40, 3x cheaper input) - openai.model.name.text: gpt-4o -> gpt-5-mini (bash.25/.00, 10x cheaper input) - targeting.ai.audience-model: gpt-4o -> gpt-5-mini - targeting.ai.budget-model: gpt-4o-mini -> gpt-5-nano - targeting.ai.creatives-model: gpt-4o -> gpt-5-mini - fix: max_tokens -> max_completion_tokens (GPT-5 requires new param name)
This commit is contained in:
@@ -83,7 +83,7 @@ public class OpenAIAnalyticsService {
|
||||
Map<String, Object> requestBody = new HashMap<>();
|
||||
requestBody.put("model", model);
|
||||
requestBody.put("messages", messages);
|
||||
requestBody.put("max_tokens", maxTokens);
|
||||
requestBody.put("max_completion_tokens", maxTokens);
|
||||
requestBody.put("temperature", temperature);
|
||||
return requestBody;
|
||||
}
|
||||
|
||||
@@ -45,8 +45,8 @@ ollama.responseTimeoutMs=18000000
|
||||
# --- OpenAI ---
|
||||
openai.api.key=${OPENAI_API_KEY}
|
||||
openai.api.url=https://api.openai.com/v1/chat/completions
|
||||
openai.model.name=gpt-4o-mini
|
||||
openai.model.name.text=gpt-4o
|
||||
openai.model.name=gpt-5-nano
|
||||
openai.model.name.text=gpt-5-mini
|
||||
openai.timeoutMs=90000
|
||||
openai.timeoutMs.instruction=180000
|
||||
openai.retry.maxAttempts=3
|
||||
@@ -95,11 +95,11 @@ deep-research.api.url=${DEEP_RESEARCH_API_URL}
|
||||
deep-research.api.timeout=1800000
|
||||
|
||||
# --- Targeting AI models ---
|
||||
targeting.ai.audience-model=gpt-4o
|
||||
targeting.ai.audience-model=gpt-5-mini
|
||||
targeting.ai.max-audience-tokens=2500
|
||||
targeting.ai.budget-model=gpt-4o-mini
|
||||
targeting.ai.budget-model=gpt-5-nano
|
||||
targeting.ai.max-budget-tokens=1000
|
||||
targeting.ai.creatives-model=gpt-4o
|
||||
targeting.ai.creatives-model=gpt-5-mini
|
||||
targeting.ai.max-creatives-tokens=2000
|
||||
|
||||
# =============================================================================
|
||||
|
||||
Reference in New Issue
Block a user