@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.
Files changed (75) hide show
  1. package/CHANGELOG.md +58 -0
  2. package/changelog/v1.json +21 -0
  3. package/docs/usage/agents/model.mdx +16 -0
  4. package/docs/usage/agents/model.zh-CN.mdx +16 -0
  5. package/locales/ar/discover.json +4 -0
  6. package/locales/ar/models.json +3 -0
  7. package/locales/ar/setting.json +12 -0
  8. package/locales/bg-BG/discover.json +4 -0
  9. package/locales/bg-BG/models.json +3 -0
  10. package/locales/bg-BG/setting.json +12 -0
  11. package/locales/de-DE/discover.json +4 -0
  12. package/locales/de-DE/models.json +3 -0
  13. package/locales/de-DE/setting.json +12 -0
  14. package/locales/en-US/discover.json +4 -0
  15. package/locales/en-US/models.json +3 -0
  16. package/locales/en-US/setting.json +12 -0
  17. package/locales/es-ES/discover.json +4 -0
  18. package/locales/es-ES/models.json +3 -0
  19. package/locales/es-ES/setting.json +12 -0
  20. package/locales/fa-IR/discover.json +4 -0
  21. package/locales/fa-IR/models.json +3 -0
  22. package/locales/fa-IR/setting.json +12 -0
  23. package/locales/fr-FR/discover.json +4 -0
  24. package/locales/fr-FR/models.json +3 -0
  25. package/locales/fr-FR/setting.json +12 -0
  26. package/locales/it-IT/discover.json +4 -0
  27. package/locales/it-IT/models.json +3 -0
  28. package/locales/it-IT/setting.json +12 -0
  29. package/locales/ja-JP/discover.json +4 -0
  30. package/locales/ja-JP/models.json +3 -0
  31. package/locales/ja-JP/setting.json +12 -0
  32. package/locales/ko-KR/discover.json +4 -0
  33. package/locales/ko-KR/models.json +15 -0
  34. package/locales/ko-KR/setting.json +12 -0
  35. package/locales/nl-NL/discover.json +4 -0
  36. package/locales/nl-NL/models.json +3 -0
  37. package/locales/nl-NL/setting.json +12 -0
  38. package/locales/pl-PL/discover.json +4 -0
  39. package/locales/pl-PL/models.json +3 -0
  40. package/locales/pl-PL/setting.json +12 -0
  41. package/locales/pt-BR/discover.json +4 -0
  42. package/locales/pt-BR/models.json +3 -0
  43. package/locales/pt-BR/setting.json +12 -0
  44. package/locales/ru-RU/discover.json +4 -0
  45. package/locales/ru-RU/models.json +3 -0
  46. package/locales/ru-RU/setting.json +12 -0
  47. package/locales/tr-TR/discover.json +4 -0
  48. package/locales/tr-TR/models.json +3 -0
  49. package/locales/tr-TR/setting.json +12 -0
  50. package/locales/vi-VN/discover.json +4 -0
  51. package/locales/vi-VN/models.json +3 -0
  52. package/locales/vi-VN/setting.json +12 -0
  53. package/locales/zh-CN/discover.json +4 -0
  54. package/locales/zh-CN/models.json +4 -1
  55. package/locales/zh-CN/setting.json +12 -0
  56. package/locales/zh-TW/discover.json +4 -0
  57. package/locales/zh-TW/models.json +3 -0
  58. package/locales/zh-TW/setting.json +12 -0
  59. package/package.json +1 -1
  60. package/src/app/(main)/discover/(detail)/model/[...slugs]/features/ParameterList/index.tsx +10 -0
  61. package/src/config/aiModels/github.ts +18 -7
  62. package/src/config/aiModels/openai.ts +35 -2
  63. package/src/config/aiModels/perplexity.ts +25 -32
  64. package/src/config/modelProviders/perplexity.ts +26 -32
  65. package/src/features/AgentSetting/AgentModal/index.tsx +27 -3
  66. package/src/libs/agent-runtime/github/index.ts +3 -3
  67. package/src/libs/agent-runtime/openai/index.ts +7 -5
  68. package/src/libs/agent-runtime/openrouter/__snapshots__/index.test.ts.snap +7 -7
  69. package/src/libs/agent-runtime/utils/streams/openai.test.ts +202 -0
  70. package/src/libs/agent-runtime/utils/streams/openai.ts +9 -8
  71. package/src/locales/default/discover.ts +4 -0
  72. package/src/locales/default/setting.ts +12 -0
  73. package/src/store/chat/slices/aiChat/actions/generateAIChat.ts +5 -0
  74. package/src/types/agent/index.ts +6 -0
  75. package/src/types/llm.ts +5 -0
@@ -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
@@ -159,6 +159,11 @@ export interface LLMParams {
159
159
  * 生成文本的随机度量,用于控制文本的创造性和多样性
160
160
  * @default 1
161
161
  */
162
+ reasoning_effort?: string;
163
+ /**
164
+ * 控制模型推理能力
165
+ * @default medium
166
+ */
162
167
  temperature?: number;
163
168
  /**
164
169
  * 控制生成文本中最高概率的单个 token