Skip to content

Commit 9445e14

Browse files
committed
chore: Upgrade the default model
refactor: Optimize support for OpenAI API
1 parent 92a11f7 commit 9445e14

6 files changed

Lines changed: 15 additions & 8 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "deep-research",
33
"description": "Use any LLMs (Large Language Models) for Deep Research. Support SSE API and MCP server.",
4-
"version": "0.10.0",
4+
"version": "0.10.1",
55
"license": "MIT",
66
"repository": {
77
"url": "https://github.com/u14app/deep-research"

src/hooks/useDeepResearch.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,9 @@ function useDeepResearch() {
8484
// Enable OpenAI's built-in search tool
8585
if (
8686
["openai", "azure", "openaicompatible"].includes(provider) &&
87-
model.startsWith("gpt-4o")
87+
(model.startsWith("gpt-4o") ||
88+
model.startsWith("gpt-4.1") ||
89+
model.startsWith("gpt-5"))
8890
) {
8991
return {
9092
web_search_preview: openai.tools.webSearchPreview({

src/store/setting.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ export const defaultValues: SettingStore = {
9292
mode: "",
9393
apiKey: "",
9494
apiProxy: "",
95-
thinkingModel: "gemini-2.0-flash-thinking-exp",
96-
networkingModel: "gemini-2.0-flash",
95+
thinkingModel: "gemini-2.5-pro",
96+
networkingModel: "gemini-2.5-flash",
9797
googleVertexProject: "",
9898
googleVertexLocation: "",
9999
googleClientEmail: "",
@@ -107,8 +107,8 @@ export const defaultValues: SettingStore = {
107107
openRouterNetworkingModel: "",
108108
openAIApiKey: "",
109109
openAIApiProxy: "",
110-
openAIThinkingModel: "gpt-4o",
111-
openAINetworkingModel: "gpt-4o-mini",
110+
openAIThinkingModel: "gpt-5",
111+
openAINetworkingModel: "gpt-5-mini",
112112
anthropicApiKey: "",
113113
anthropicApiProxy: "",
114114
anthropicThinkingModel: "",

src/utils/deep-research/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,9 @@ class DeepResearch {
211211
if (
212212
provider === "model" &&
213213
["openai", "azure", "openaicompatible"].includes(taskModel) &&
214-
taskModel.startsWith("gpt-4o")
214+
(taskModel.startsWith("gpt-4o") ||
215+
taskModel.startsWith("gpt-4.1") ||
216+
taskModel.startsWith("gpt-5"))
215217
) {
216218
const { openai } = await import("@ai-sdk/openai");
217219
return {

src/utils/deep-research/provider.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@ export async function createAIProvider({
5252
baseURL,
5353
apiKey,
5454
});
55-
return model.startsWith("gpt-4o")
55+
return model.startsWith("gpt-4o") ||
56+
model.startsWith("gpt-4.1") ||
57+
model.startsWith("gpt-5")
5658
? openai.responses(model)
5759
: openai(model, settings);
5860
} else if (provider === "anthropic") {

src/utils/model.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ export function filterOpenAIModelList(modelList: string[]) {
8686
if (
8787
model.startsWith("gpt-4o") ||
8888
model.startsWith("gpt-4.1") ||
89+
model.startsWith("gpt-5") ||
8990
!model.includes("nano")
9091
) {
9192
networkingModelList.push(model);

0 commit comments

Comments
 (0)