File tree Expand file tree Collapse file tree 1 file changed +4
-9
lines changed
react-native/src/settings Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,6 @@ import {
60
60
getDefaultTextModels ,
61
61
GPTModels ,
62
62
} from '../storage/Constants.ts' ;
63
- import { showInfo } from '../chat/util/ToastUtils.ts' ;
64
63
import CustomTextInput from './CustomTextInput.tsx' ;
65
64
import { requestAllOllamaModels } from '../api/ollama-api.ts' ;
66
65
import TabButton from './TabButton' ;
@@ -219,14 +218,10 @@ function SettingsScreen(): React.JSX.Element {
219
218
headerRight : ( ) => (
220
219
< CustomHeaderRightButton
221
220
onPress = { async ( ) => {
222
- if ( apiUrl . length > 0 && apiKey . length > 0 ) {
223
- navigation . navigate ( 'Bedrock' , {
224
- sessionId : - 1 ,
225
- tapIndex : - 1 ,
226
- } ) ;
227
- } else {
228
- showInfo ( 'Please input your API URL and API Key' ) ;
229
- }
221
+ navigation . navigate ( 'Bedrock' , {
222
+ sessionId : - 1 ,
223
+ tapIndex : - 1 ,
224
+ } ) ;
230
225
} }
231
226
imageSource = { require ( '../assets/done.png' ) }
232
227
/>
You can’t perform that action at this time.
0 commit comments