Skip to content

Image generation with Mistral not working #223

@gio-educ

Description

@gio-educ

Which version of integration_openai are you using?

3.5.0

Which version of Nextcloud are you using?

31.0.5

Which browser are you using? In case you are using the phone App, specify the Android or iOS version and device please.

Chrome for Windows

Describe the Bug

When Mistral API is set up on OpenAI Local AI app, the image generation via Nextcloud Assistant doesn't work. If 'mistral-medium-2505' is set as default model for image generation one gets this error:
OpenAI/LocalAI's text to image generation failed with: API request error: Client error: POST https://api.mistral.ai/v1/images/generations resulted in a 404 Not Found response: { "message":"no Route matched with those values"

Based on this documentation, the request should be posted to: 'https://api.mistral.ai/v1/agents'

Expected Behavior

After setting up Mistral API on OpenAI Local AI app and choosing 'mistral-medium-2505' as default model for image generation, by going to the tab image generation at the Nextcloud assistant and giving a prompt, an image should be generated.

To Reproduce

Set up Mistral API at OpenAI and Local AI app and try to generate an image via the Nextcloud assistant

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions