fix: force vision models to run with legacy settings
This commit is contained in:
parent
3ea2d9c0ae
commit
239e5f52e8
@ -95,7 +95,7 @@ export default class JanInferenceCortexExtension extends LocalOAIEngine {
|
|||||||
model: Model & { file_path?: string }
|
model: Model & { file_path?: string }
|
||||||
): Promise<void> {
|
): Promise<void> {
|
||||||
if (
|
if (
|
||||||
model.engine === InferenceEngine.nitro &&
|
(model.engine === InferenceEngine.nitro || model.settings.vision_model) &&
|
||||||
model.settings.llama_model_path
|
model.settings.llama_model_path
|
||||||
) {
|
) {
|
||||||
// Legacy chat model support
|
// Legacy chat model support
|
||||||
@ -111,7 +111,10 @@ export default class JanInferenceCortexExtension extends LocalOAIEngine {
|
|||||||
model.settings = settings
|
model.settings = settings
|
||||||
}
|
}
|
||||||
|
|
||||||
if (model.engine === InferenceEngine.nitro && model.settings.mmproj) {
|
if (
|
||||||
|
(model.engine === InferenceEngine.nitro || model.settings.vision_model) &&
|
||||||
|
model.settings.mmproj
|
||||||
|
) {
|
||||||
// Legacy clip vision model support
|
// Legacy clip vision model support
|
||||||
model.settings = {
|
model.settings = {
|
||||||
...model.settings,
|
...model.settings,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user