mirror of
https://github.com/aljazceru/goose.git
synced 2025-12-19 15:14:21 +01:00
add copy button and make extension builtins any time (#1961)
This commit is contained in:
@@ -63,7 +63,7 @@ export default function App() {
|
||||
view: 'welcome',
|
||||
viewOptions: {},
|
||||
});
|
||||
const { getExtensions, addExtension, read } = useConfig();
|
||||
const { getExtensions, addExtension, read, upsert } = useConfig();
|
||||
const initAttemptedRef = useRef(false);
|
||||
|
||||
// Utility function to extract the command from the link
|
||||
@@ -91,6 +91,7 @@ export default function App() {
|
||||
const initializeApp = async () => {
|
||||
try {
|
||||
const config = window.electron.getConfig();
|
||||
|
||||
const provider = config.GOOSE_PROVIDER ?? (await read('GOOSE_PROVIDER', false));
|
||||
const model = config.GOOSE_MODEL ?? (await read('GOOSE_MODEL', false));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user