@lobehub/chat 1.49.15 → 1.50.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +58 -0
- package/changelog/v1.json +21 -0
- package/docs/usage/agents/model.mdx +16 -0
- package/docs/usage/agents/model.zh-CN.mdx +16 -0
- package/locales/ar/discover.json +4 -0
- package/locales/ar/models.json +3 -0
- package/locales/ar/setting.json +12 -0
- package/locales/bg-BG/discover.json +4 -0
- package/locales/bg-BG/models.json +3 -0
- package/locales/bg-BG/setting.json +12 -0
- package/locales/de-DE/discover.json +4 -0
- package/locales/de-DE/models.json +3 -0
- package/locales/de-DE/setting.json +12 -0
- package/locales/en-US/discover.json +4 -0
- package/locales/en-US/models.json +3 -0
- package/locales/en-US/setting.json +12 -0
- package/locales/es-ES/discover.json +4 -0
- package/locales/es-ES/models.json +3 -0
- package/locales/es-ES/setting.json +12 -0
- package/locales/fa-IR/discover.json +4 -0
- package/locales/fa-IR/models.json +3 -0
- package/locales/fa-IR/setting.json +12 -0
- package/locales/fr-FR/discover.json +4 -0
- package/locales/fr-FR/models.json +3 -0
- package/locales/fr-FR/setting.json +12 -0
- package/locales/it-IT/discover.json +4 -0
- package/locales/it-IT/models.json +3 -0
- package/locales/it-IT/setting.json +12 -0
- package/locales/ja-JP/discover.json +4 -0
- package/locales/ja-JP/models.json +3 -0
- package/locales/ja-JP/setting.json +12 -0
- package/locales/ko-KR/discover.json +4 -0
- package/locales/ko-KR/models.json +15 -0
- package/locales/ko-KR/setting.json +12 -0
- package/locales/nl-NL/discover.json +4 -0
- package/locales/nl-NL/models.json +3 -0
- package/locales/nl-NL/setting.json +12 -0
- package/locales/pl-PL/discover.json +4 -0
- package/locales/pl-PL/models.json +3 -0
- package/locales/pl-PL/setting.json +12 -0
- package/locales/pt-BR/discover.json +4 -0
- package/locales/pt-BR/models.json +3 -0
- package/locales/pt-BR/setting.json +12 -0
- package/locales/ru-RU/discover.json +4 -0
- package/locales/ru-RU/models.json +3 -0
- package/locales/ru-RU/setting.json +12 -0
- package/locales/tr-TR/discover.json +4 -0
- package/locales/tr-TR/models.json +3 -0
- package/locales/tr-TR/setting.json +12 -0
- package/locales/vi-VN/discover.json +4 -0
- package/locales/vi-VN/models.json +3 -0
- package/locales/vi-VN/setting.json +12 -0
- package/locales/zh-CN/discover.json +4 -0
- package/locales/zh-CN/models.json +4 -1
- package/locales/zh-CN/setting.json +12 -0
- package/locales/zh-TW/discover.json +4 -0
- package/locales/zh-TW/models.json +3 -0
- package/locales/zh-TW/setting.json +12 -0
- package/package.json +1 -1
- package/src/app/(main)/discover/(detail)/model/[...slugs]/features/ParameterList/index.tsx +10 -0
- package/src/config/aiModels/github.ts +18 -7
- package/src/config/aiModels/openai.ts +35 -2
- package/src/config/aiModels/perplexity.ts +25 -32
- package/src/config/modelProviders/perplexity.ts +26 -32
- package/src/features/AgentSetting/AgentModal/index.tsx +27 -3
- package/src/libs/agent-runtime/github/index.ts +3 -3
- package/src/libs/agent-runtime/openai/index.ts +7 -5
- package/src/libs/agent-runtime/openrouter/__snapshots__/index.test.ts.snap +7 -7
- package/src/libs/agent-runtime/utils/streams/openai.test.ts +202 -0
- package/src/libs/agent-runtime/utils/streams/openai.ts +9 -8
- package/src/locales/default/discover.ts +4 -0
- package/src/locales/default/setting.ts +12 -0
- package/src/store/chat/slices/aiChat/actions/generateAIChat.ts +5 -0
- package/src/types/agent/index.ts +6 -0
- package/src/types/llm.ts +5 -0
package/src/types/agent/index.ts
CHANGED
@@ -68,6 +68,11 @@ export interface LobeAgentChatConfig {
|
|
68
68
|
enableHistoryCount?: boolean;
|
69
69
|
enableMaxTokens?: boolean;
|
70
70
|
|
71
|
+
/**
|
72
|
+
* 自定义推理强度
|
73
|
+
*/
|
74
|
+
enableReasoningEffort?: boolean;
|
75
|
+
|
71
76
|
/**
|
72
77
|
* 历史消息条数
|
73
78
|
*/
|
@@ -82,6 +87,7 @@ export const AgentChatConfigSchema = z.object({
|
|
82
87
|
enableCompressHistory: z.boolean().optional(),
|
83
88
|
enableHistoryCount: z.boolean().optional(),
|
84
89
|
enableMaxTokens: z.boolean().optional(),
|
90
|
+
enableReasoningEffort: z.boolean().optional(),
|
85
91
|
historyCount: z.number().optional(),
|
86
92
|
});
|
87
93
|
|
package/src/types/llm.ts
CHANGED