Просмотр исходного кода

✨ feat(mobile): 移除首页智能助手入口

- 从NewHomePage.tsx中删除智能助手入口UI组件
- 移除相关导航和交互逻辑

⚡️ perf(ai-agents): 临时禁用温度和最大令牌参数

- 注释掉temperature和max_tokens参数以优化API调用性能
- 减少API请求参数数量,提高响应速度
yourname 7 месяцев назад
Родитель
Сommit
4c996144ab

+ 1 - 24
src/client/mobile/pages/NewHomePage.tsx

@@ -441,30 +441,7 @@ const NewHomePage: React.FC = () => {
           <CategoryScroll categories={categories} onNavigate={navigate} />
         </div>
 
-        {/* 智能体入口 */}
-        <div className="mt-6 px-4">
-          <div className="bg-gradient-to-r from-blue-50 to-indigo-50 rounded-2xl p-6 border border-blue-200">
-            <div className="flex items-center justify-between">
-              <div>
-                <h3 className="font-serif text-lg font-bold text-blue-900 mb-1">
-                  智能助手
-                </h3>
-                <p className="text-blue-700 text-sm">
-                  AI智能助手,为您提供专业咨询
-                </p>
-              </div>
-              <div className="flex-shrink-0">
-                <SparklesIcon className="w-8 h-8 text-blue-600" />
-              </div>
-            </div>
-            <button
-              onClick={() => navigate('/ai-agents')}
-              className="mt-4 w-full bg-blue-600 text-white py-2 px-4 rounded-full text-sm font-medium hover:bg-blue-700 transition-colors"
-            >
-              立即体验
-            </button>
-          </div>
-        </div>
+        {/* 智能体入口已移除 */}
 
         {/* 推荐岗位 */}
         {recommendedJobs.length > 0 && (

+ 2 - 2
src/server/modules/ai-agents/ai-agent.service.ts

@@ -123,8 +123,8 @@ export class AIAgentService {
       const completion = await this.openai.chat.completions.create({
         model: agent.model,
         messages,
-        temperature: agent.temperature,
-        max_tokens: agent.maxTokens,
+        // temperature: agent.temperature,
+        // max_tokens: agent.maxTokens,
       });
 
       const aiMessage = completion.choices[0]?.message?.content || '抱歉,我无法回答这个问题';