mirror of
https://github.com/mudler/LocalAI.git
synced 2025-05-21 19:15:00 +00:00
Small fixups
This commit is contained in:
parent
78ef045bb3
commit
5ce57206e3
3 changed files with 14 additions and 10 deletions
|
@ -1974,7 +1974,7 @@ static void params_parse(const backend::ModelOptions* request,
|
|||
if (!request->mmproj().empty()) {
|
||||
// get the directory of modelfile
|
||||
std::string model_dir = params.model.substr(0, params.model.find_last_of("/\\"));
|
||||
params.mmproj = model_dir + request->mmproj();
|
||||
params.mmproj = model_dir + "/"+ request->mmproj();
|
||||
}
|
||||
// params.model_alias ??
|
||||
params.model_alias = request->modelfile();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue