mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-05 16:23:36 +00:00
15 lines
372 B
TypeScript
15 lines
372 B
TypeScript
import { createContext } from 'react';
|
|
|
|
export interface AISettings {
|
|
apiKey: string;
|
|
baseUrl: string;
|
|
model: string;
|
|
}
|
|
|
|
export interface AISettingsContextType {
|
|
settings: AISettings;
|
|
updateSettings: (settings: Partial<AISettings>) => void;
|
|
isConfigured: boolean;
|
|
}
|
|
|
|
export const AISettingsContext = createContext<AISettingsContextType | undefined>(undefined); |