repo_description: ✨ Light and Fast AI Assistant. Support: Web | iOS | MacOS | Android |  Linux | Windows
repo_topics: calclaude chatgpt claude cross-platform desktop fe gemini gemini-pro gemini-server gemini-ultra gpt-4o groq nextjs ollama react tauri tauri-app vercel webui
code: import { useMemo } from "react";
  import { useAccessStore, useAppConfig } from "../store";
  import { collectModelsWithDefaultModel } from "./model";
  
  export function useAllModels() {
    const accessStore = useAccessStore();
    const configStore = useAppConfig();
    const models = useMemo(() => {
      return collectModelsWithDefaultModel(
        configStore.models,
        [configStore.customModels, accessStore.customModels].join(","),
        accessStore.defaultModel,
      );
    }, [
      accessStore.customModels,
      accessStore.defaultModel,
      configStore.customModels,
      configStore.models,
    ]);
  
    return models;
  }
  