From 86c9fdb1a71698a6dacedceb78c7c75619a6515b Mon Sep 17 00:00:00 2001 From: Jan Sundermeyer Date: Tue, 24 Sep 2024 21:01:52 +0200 Subject: [PATCH] fix #3807 use custom url for retrieving models, assumes custom url to follow the scheme "chat/completions" untested --- src/configdialog.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/configdialog.cpp b/src/configdialog.cpp index 4454af07b..bce822d57 100644 --- a/src/configdialog.cpp +++ b/src/configdialog.cpp @@ -735,7 +735,8 @@ void ConfigDialog::retrieveModels() url="https://api.openai.com/v1/models"; break; case 2: - url="http://localhost:8080/v1/models"; + url=ui.leAIAPIURL->text(); + url=url.replace("chat/completions","models"); break; default: break;