File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -129,8 +129,9 @@ async function chatReplyProcess(options: RequestOptions) {
129129 // Use Responses API or Chat Completions to get search query
130130 let searchQuery : string = ''
131131 if ( key . keyModel === 'ResponsesAPI' ) {
132+ const modelGetSearchQuery = model . startsWith ( 'gpt-5' ) ? 'gpt-5-nano' : model
132133 const response = await openai . responses . create ( {
133- model,
134+ model : modelGetSearchQuery ,
134135 instructions : systemMessageGetSearchQuery ,
135136 input : messages as OpenAI . Responses . ResponseInput ,
136137 reasoning : {
@@ -254,7 +255,7 @@ search result: <search_result>${searchResultContent}</search_result>`,
254255 }
255256 else {
256257 reasoning = {
257- effort : 'minimal' ,
258+ effort : model . startsWith ( 'gpt-5.' ) ? 'none' : 'minimal' ,
258259 }
259260 }
260261 const stream = await openai . responses . create (
You can’t perform that action at this time.
0 commit comments