Skip to content

Commit 37ba7a7

Browse files
method for checking if reasoning model
1 parent 10f33b7 commit 37ba7a7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

components/openai/openai.app.mjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,9 @@ export default {
338338
maxBodyLength: Infinity,
339339
});
340340
},
341+
isReasoningModel(model) {
342+
return model.match(/^o[1-9]/gi)?.length;
343+
},
341344
async models({ $ }) {
342345
const { data: models } = await this._makeRequest({
343346
$,

0 commit comments

Comments
 (0)