Skip to content

Failed to parse URL from [object Request] with mistral #4619

@amol-

Description

@amol-

What happened?

I configured the mistral subscription with Pi, but any request fails with

Error: Unexpected HTTP client error: TypeError: Failed to parse URL from [object Request]

The issue seems related to undici not correctly handling the mistral sdk Request object and thus trying to use it as a string instead of using the object. This seems to be related to pi patching the request flow to use undici for proxy support.

Steps to reproduce

  • /login to mistral as a provider using the "Vibe" API Key
  • Pick any model (I tried mistral-medium-3.5)
  • Send any message

Expected behavior

The message is correctly sent and model replies.

Version

0.74.1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions