File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -44,7 +44,8 @@ Model dependency:
4444
4545- ` extractClaimsFromNewEvidence ` uses ` gpt-5-mini ` .
4646- ` triageNewEvidence ` uses ` gpt-5-mini ` .
47- - title/slug generation and translation use ` gpt-5-nano ` .
47+ - title/slug generation uses ` gpt-5-nano ` .
48+ - translation uses ` gpt-5.4-nano ` .
4849
4950Expected cost before running the checked-in eval set: less than USD 1 with the
5051current short fixtures. Revisit this estimate in the same PR when adding or
Original file line number Diff line number Diff line change @@ -7,9 +7,10 @@ import {
77import { assert } from '../../../util/assert.js' ;
88import { getOpenAiClient } from '../../client.js' ;
99import { toOpenAiJsonSchema } from '../../common/jsonSchema.js' ;
10+ import { TRANSLATE_MODEL } from './model.js' ;
1011
1112export async function translate ( text : string ) {
12- const model = 'gpt-5-nano' ;
13+ const model = TRANSLATE_MODEL ;
1314
1415 const context : ResponseInputItem [ ] = [ { role : 'user' , content : text } ] ;
1516
Original file line number Diff line number Diff line change 1+ export const TRANSLATE_MODEL = 'gpt-5.4-nano' ;
2+ export const TRANSLATE_MODEL_SOURCE = `@openai/${ TRANSLATE_MODEL } ` ;
Original file line number Diff line number Diff line change @@ -132,6 +132,9 @@ describe('ingestContent', () => {
132132 title : {
133133 'en-SG' : 'Downtown Line delay near Beauty World' ,
134134 } ,
135+ titleMeta : {
136+ source : '@openai/gpt-5.4-nano' ,
137+ } ,
135138 } ) ;
136139 expect ( bundle . evidence ) . toHaveLength ( 1 ) ;
137140 expect ( bundle . evidence [ 0 ] ) . toMatchObject ( {
@@ -149,6 +152,9 @@ describe('ingestContent', () => {
149152 'Delay minutes: 15' ,
150153 'Report count: 4' ,
151154 ] . join ( '\n\n' ) ,
155+ render : {
156+ source : '@openai/gpt-5.4-nano' ,
157+ } ,
152158 } ) ;
153159 expect ( bundle . impactEvents ) . toEqual (
154160 expect . arrayContaining ( [
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ import { computeImpactFromEvidenceClaims } from '../../helpers/computeImpactFrom
1212import { extractClaimsFromNewEvidence } from '../../llm/functions/extractClaimsFromNewEvidence/index.js' ;
1313import { generateIssueTitleAndSlug } from '../../llm/functions/generateIssueTitleAndSlug/index.js' ;
1414import { translate } from '../../llm/functions/translate/index.js' ;
15+ import { TRANSLATE_MODEL_SOURCE } from '../../llm/functions/translate/model.js' ;
1516import { triageNewEvidence } from '../../llm/functions/triageNewEvidence/index.js' ;
1617import { assert } from '../assert.js' ;
1718import { formatContentTextForIngest } from './helpers/formatContentTextForIngest.js' ;
@@ -167,7 +168,7 @@ export async function ingestContent(
167168 type : triageResult . result . issueType ,
168169 title : translatedTitles ,
169170 titleMeta : {
170- source : '@openai/gpt-5-nano' ,
171+ source : TRANSLATE_MODEL_SOURCE ,
171172 } ,
172173 } ;
173174
@@ -206,7 +207,7 @@ export async function ingestContent(
206207 sourceUrl : evidenceProvenance . sourceUrl ,
207208 render : {
208209 text : translatedEvidenceText ,
209- source : '@openai/gpt-5-nano' ,
210+ source : TRANSLATE_MODEL_SOURCE ,
210211 } ,
211212 } ;
212213
You can’t perform that action at this time.
0 commit comments