Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
use custom url for retrieving models, assumes custom url to follow the
scheme "chat/completions"

untested
  • Loading branch information
sunderme committed Sep 24, 2024
1 parent b16af3e commit 86c9fdb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/configdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 86c9fdb

Please sign in to comment.