muxi feng commited on
Commit
152ad49
·
1 Parent(s): e8a1153

删除标题响应

Browse files
Files changed (1) hide show
  1. app/store/chat.ts +11 -11
app/store/chat.ts CHANGED
@@ -411,20 +411,20 @@ export const useChatStore = create<ChatStore>()(
411
  countMessages(cleanMessages) >= SUMMARIZE_MIN_LEN
412
  ) {
413
  const Bot = useAppConfig.getState().bot;
414
- if (Bot != "OpenAI (VIP)") {
415
  get().updateCurrentSession(
416
  (session) => (session.topic = trimTopic(Bot)),
417
  );
418
- } else {
419
- requestWithPrompt(cleanMessages, Locale.Store.Prompt.Topic, {
420
- model: "gpt-3.5-turbo",
421
- }).then((res) => {
422
- get().updateCurrentSession(
423
- (session) =>
424
- (session.topic = res ? trimTopic(res) : DEFAULT_TOPIC),
425
- );
426
- });
427
- }
428
  }
429
 
430
  const modelConfig = session.mask.modelConfig;
 
411
  countMessages(cleanMessages) >= SUMMARIZE_MIN_LEN
412
  ) {
413
  const Bot = useAppConfig.getState().bot;
414
+ // if (Bot != "OpenAI (VIP)") {
415
  get().updateCurrentSession(
416
  (session) => (session.topic = trimTopic(Bot)),
417
  );
418
+ // } else {
419
+ // requestWithPrompt(cleanMessages, Locale.Store.Prompt.Topic, {
420
+ // model: "gpt-3.5-turbo",
421
+ // }).then((res) => {
422
+ // get().updateCurrentSession(
423
+ // (session) =>
424
+ // (session.topic = res ? trimTopic(res) : DEFAULT_TOPIC),
425
+ // );
426
+ // });
427
+ // }
428
  }
429
 
430
  const modelConfig = session.mask.modelConfig;