Skip to content

Warning printed from AI SDK #5

@FrankChen021

Description

@FrankChen021

Thanks for your work.

I got a warning:

AI SDK Warning (githubcopilot.chat / gpt-4o): The feature "responseFormat" is not supported. JSON response format schema is only supported with structuredOutputs

The warning is from open ai compatible provider.

The OpenAICompatibleChatLanguageModel provides a props supportsStructuredOutputs which allows users to eliminate this warning.
I think GitHubCopilotProviderSettings should expose this setting, or inside the provider we set this property to true.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions