Loading
whisper-cpp: Ensure that backend dir is set
If this field is not set, then the backend search path consists of the executable directory, and the current working directory. This works fine for executables that are bundled with whisper-cpp, but fails for anything that links against the library, e.g. ffmpeg. If there are no backends available other than CPU, this causes a crash. Implementation of the search path behaviour is here https://github.com/ggml-org/whisper.cpp/blob/d9b7613b34a343848af572cc14467fc5e82fc788/ggml/src/ggml-backend-reg.cpp#L522-L531