I am currently using gpt-5-nano to built an agentic flow but it is very slow - as in 22 seconds slow. Is there another model I can use that still uses parameters?
One that would still work with the structure of my calls
e.g.
const RATING_SCHEMA = {
type: ‘object’,
additionalProperties: false,
properties: {
scored_options: {
type: 'array',
items: {
type: 'object',
additionalProperties: false,
properties: {
mode: { type: 'string' },
label: { type: 'string' },
score: {
type: 'number',
description: 'Relevance percentage from 0-100 (integer).'
},
rationale: {
type: 'string',
description: 'Short explanation of the score.'
}
},
required: \['mode', 'label', 'score'\]
}
}
},
required: [‘scored_options’]
};
const { parsed } = await callOpenAIFunction({
openai,
name: 'rate_router_options',
description: 'Assign relevance scores to the router options.',
parameters: RATING_SCHEMA,
model: 'gpt-5-nano',
temperature: 0,
messages: \[
{ role: 'system', content: instructions },
{ role: 'user', content: JSON.stringify(payload) }
\]
});
Thanks,