Skip to content

Commit

Permalink
Update settings.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
VarunJoshi10 authored Jun 16, 2024
1 parent 8d33375 commit 80ee7a3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/state/settings.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import { MyStateCreator } from './store';

export type SettingsSlice = {
openAIKey: string | null;
zynapseKey: string | null;
selectedModel: string;
actions: {
update: (values: Partial<SettingsSlice>) => void;
};
};
export const createSettingsSlice: MyStateCreator<SettingsSlice> = (set) => ({
openAIKey: null,
selectedModel: 'gpt-3.5-turbo',
zynapseKey: null,
selectedModel: 'mistral',
actions: {
update: (values) => {
set((state) => {
Expand Down

0 comments on commit 80ee7a3

Please sign in to comment.