mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-09 05:39:12 +00:00
use is_active property for determine user subscription status
This commit is contained in:
@@ -281,7 +281,7 @@ export default function Agents() {
|
|||||||
|
|
||||||
const modelOptions: ModelOptions[] = userConfig?.chat_model_options || [];
|
const modelOptions: ModelOptions[] = userConfig?.chat_model_options || [];
|
||||||
const selectedChatModelOption: number = userConfig?.selected_chat_model_config || 0;
|
const selectedChatModelOption: number = userConfig?.selected_chat_model_config || 0;
|
||||||
const isSubscribed: boolean = isUserSubscribed(userConfig);
|
const isSubscribed: boolean = userConfig?.is_active || false;
|
||||||
|
|
||||||
// The default model option should map to the item in the modelOptions array that has the same id as the selectedChatModelOption
|
// The default model option should map to the item in the modelOptions array that has the same id as the selectedChatModelOption
|
||||||
const defaultModelOption = modelOptions.find(
|
const defaultModelOption = modelOptions.find(
|
||||||
|
|||||||
Reference in New Issue
Block a user