mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-08-02 05:47:31 +08:00
Feat: Store the dialogue reasoning level on the client side. (#17530)
### Summary Feat: Store the dialogue reasoning level on the client side.
This commit is contained in:
@@ -1,4 +1,9 @@
|
||||
import { Authorization, Token, UserInfo } from '@/constants/authorization';
|
||||
import {
|
||||
Authorization,
|
||||
ThinkingLevel,
|
||||
Token,
|
||||
UserInfo,
|
||||
} from '@/constants/authorization';
|
||||
import { getSearchValue } from './common-util';
|
||||
const KeySet = [Authorization, Token, UserInfo];
|
||||
|
||||
@@ -45,6 +50,12 @@ const storage = {
|
||||
getLanguage: (): string => {
|
||||
return localStorage.getItem('lng') as string;
|
||||
},
|
||||
setThinkingLevel: (level: string) => {
|
||||
localStorage.setItem(ThinkingLevel, level);
|
||||
},
|
||||
getThinkingLevel: (): string => {
|
||||
return localStorage.getItem(ThinkingLevel) || '1';
|
||||
},
|
||||
};
|
||||
|
||||
export const getAuthorization = () => {
|
||||
|
||||
Reference in New Issue
Block a user