diff options
| author | Jaana Dogan <[email protected]> | 2025-04-18 11:12:18 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-04-18 11:12:18 -0700 |
| commit | 3afaa8033bdd9d6af99ff378cafcd84afd76c59e (patch) | |
| tree | eecba3f035a7147281dfe4db5ca015108ae9d3dc /packages/cli/src/ui/components/InputPrompt.tsx | |
| parent | e1fac4025606246e284b3e370d22100e8a25d652 (diff) | |
Introduce a config module to manage configuration (#22)
* Introduce a config module to manage configuration
* Remove public modifier
Diffstat (limited to 'packages/cli/src/ui/components/InputPrompt.tsx')
| -rw-r--r-- | packages/cli/src/ui/components/InputPrompt.tsx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/packages/cli/src/ui/components/InputPrompt.tsx b/packages/cli/src/ui/components/InputPrompt.tsx index f79aeaa3..1102e75d 100644 --- a/packages/cli/src/ui/components/InputPrompt.tsx +++ b/packages/cli/src/ui/components/InputPrompt.tsx @@ -1,7 +1,9 @@ import React from 'react'; import { Box, Text } from 'ink'; import TextInput from 'ink-text-input'; -import { getModel } from '../../config/globalConfig.js'; +import { globalConfig } from '../../config/config.js'; + + interface InputPromptProps { query: string; @@ -15,7 +17,7 @@ const InputPrompt: React.FC<InputPromptProps> = ({ setQuery, onSubmit, }) => { - const model = getModel(); + const model = globalConfig.getModel(); return ( <Box marginTop={1} borderStyle="round" borderColor={'white'} paddingX={1}> |
