Skip to content

Commit 6875051

Browse files
authored
fix: api url and key check for ollama and deepseek (#18)
1 parent 9611690 commit 6875051

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

react-native/src/settings/SettingsScreen.tsx

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ import {
6060
getDefaultTextModels,
6161
GPTModels,
6262
} from '../storage/Constants.ts';
63-
import { showInfo } from '../chat/util/ToastUtils.ts';
6463
import CustomTextInput from './CustomTextInput.tsx';
6564
import { requestAllOllamaModels } from '../api/ollama-api.ts';
6665
import TabButton from './TabButton';
@@ -219,14 +218,10 @@ function SettingsScreen(): React.JSX.Element {
219218
headerRight: () => (
220219
<CustomHeaderRightButton
221220
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+
});
230225
}}
231226
imageSource={require('../assets/done.png')}
232227
/>

0 commit comments

Comments
 (0)