doc: troubleshooting guide added

This commit is contained in:
Timothy J. Baek 2023-10-24 18:12:00 -07:00
parent 28ea56c95a
commit 7d0ec543b7
2 changed files with 32 additions and 1 deletions

View file

@ -35,12 +35,15 @@
};
const checkOllamaConnection = async () => {
if (API_BASE_URL === '') {
API_BASE_URL = BUILD_TIME_API_BASE_URL;
}
const res = await getModelTags(API_BASE_URL);
if (res) {
toast.success('Server connection verified');
saveSettings(
API_BASE_URL === '' ? BUILD_TIME_API_BASE_URL : API_BASE_URL,
API_BASE_URL,
system != '' ? system : null,
temperature != 0.8 ? temperature : null
);