Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError in ListModelsModelResponse for mistral-openorca #9

Open
enjoping opened this issue Jan 5, 2025 · 2 comments
Open

TypeError in ListModelsModelResponse for mistral-openorca #9

enjoping opened this issue Jan 5, 2025 · 2 comments

Comments

@enjoping
Copy link

enjoping commented Jan 5, 2025

Like with the other open issues there is a type assertion failing here.

When having mistral-openorca:latest installed listing models fails as the parameter families is null instead of an array.

array:6 [
"parent_model" => ""
"format" => "gguf"
"family" => "llama"
"families" => null
"parameter_size" => "7B"
"quantization_level" => "Q4_0"
]

Type assertion therefore fails and an PHP Error is thrown.

@enjoping
Copy link
Author

enjoping commented Jan 5, 2025

Same problem btw. with samantha-mistral:latest and deepseek-llm:7b.

@ryuzhaki
Copy link

ryuzhaki commented Feb 15, 2025

Also faced with this problem, I see that in the wizard this error is already fixed, but a new version hasn't been released
#8

Interim solution, write in composer.json

{
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/ArdaGnsrn/ollama-php"
        }
    ],
    "require": {
        "ardagnsrn/ollama-php": "dev-master#e5a1eaf036dc799736cb3d9a082f79b80f140aa7"
    }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants