Spaces:
Running
Running
File size: 653 Bytes
b034029 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | import { create } from 'zustand';
import type { GeminiKeyConfig, OpenAIProviderConfig, ProviderKeyConfig } from '@/types';
export interface ConfigStateShape {
geminiApiKeys: GeminiKeyConfig[];
claudeApiKeys: ProviderKeyConfig[];
codexApiKeys: ProviderKeyConfig[];
vertexApiKeys: ProviderKeyConfig[];
openaiCompatibility: OpenAIProviderConfig[];
}
interface ConfigState {
config: ConfigStateShape;
}
const emptyConfig: ConfigStateShape = {
geminiApiKeys: [],
claudeApiKeys: [],
codexApiKeys: [],
vertexApiKeys: [],
openaiCompatibility: []
};
export const useConfigStore = create<ConfigState>(() => ({
config: emptyConfig
}));
|