nico-martin's picture
nico-martin HF Staff
added tfjs v4
b77708b
raw
history blame
578 Bytes
import { DEFAULT_SYSTEM_PROMPT, MODELS } from "@utils/models.ts";
import { createContext } from "react";
import type { ChatSettings, ChatSettingsContextType } from "./types.ts";
const ChatSettingsContext = createContext<ChatSettingsContextType>({
settings: null,
setSettings: () => {},
downloadedModels: [],
openSettingsModal: () => {},
});
export default ChatSettingsContext;
export const DEFAULT_CHAT_SETTINGS: ChatSettings = {
tools: [],
modelKey: Object.keys(MODELS)[0],
systemPrompt: DEFAULT_SYSTEM_PROMPT,
temperature: 0.7,
enableThinking: false,
};