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

Plugins Not Working #617

Closed
raffertyuy opened this issue Nov 17, 2023 · 9 comments
Closed

Plugins Not Working #617

raffertyuy opened this issue Nov 17, 2023 · 9 comments
Assignees

Comments

@raffertyuy
Copy link

Describe the bug
After enabling plugins (tried with Klarna Shopping and my previously working custom plugin), and typing in the chat, chat will show this error

Unable to generate bot response. Details: Error: 500: Microsoft.OpenApi.Readers.Exceptions.OpenApiUnsupportedSpecVersionException: OpenAPI specification version '' is not supported. at Microsoft.OpenApi.Readers.ParsingContext.Parse(YamlDocument yamlDocument) at Microsoft.OpenApi.Readers.OpenApiYamlDocumentReader.ReadAsync(YamlDocument input, CancellationToken cancellationToken) at Microsoft.OpenApi.Readers.OpenApiTextReaderReader.ReadAsync(TextReader input, CancellationToken cancellationToken) at Microsoft.OpenApi.Readers.OpenApiStreamReader.ReadAsync(Stream input, CancellationToken cancellationToken) at Microsoft.SemanticKernel.Functions.OpenAPI.OpenApi.OpenApiDocumentParser.ParseAsync(Stream stream, Boolean ignoreNonCompliantErrors, CancellationToken cancellationToken) at Microsoft.SemanticKernel.Functions.OpenAPI.Extensions.KernelOpenApiPluginExtensions.RegisterOpenApiPluginAsync(IKernel kernel, String pluginName, OpenApiFunctionExecutionParameters executionP...
image

Note: This works in a previous version that I still have deployed.

To Reproduce
Steps to reproduce the behavior:

  1. Go to Plugins
  2. Enable Klarna Shopping
  3. Type message I'm looking for shoes, size 10.
  4. See error

Platform

  • OS: Windows
  • IDE: VS Code
  • Language: C#
  • Source: Latest code as of this issue creation date.

Additional context
Running locally, with ./start.ps1

@mgoelz
Copy link

mgoelz commented Nov 17, 2023

can confirm that bug.

@vicentegarciadiez
Copy link

I'm getting the same error enabling the websearch pluging and using the Azure infrastructure provided by copilot development team

@momuno
Copy link
Member

momuno commented Nov 17, 2023

thanks @raffertyuy When you say latest code, are you referring to the latest release, or the latest commit on main? Can you please point me to the exact commit you are using?

@momuno momuno self-assigned this Nov 17, 2023
@raffertyuy
Copy link
Author

raffertyuy commented Nov 17, 2023

thanks @raffertyuy When you say latest code, are you referring to the latest release, or the latest commit on main? Can you please point me to the exact commit you are using?

Hi @momuno, it's the latest commit on the chain as of yesterday.
Should be this one: ccf79dc

Update: Issue also exists in v0.8, but works fine on 0.7.1.

@momuno
Copy link
Member

momuno commented Nov 18, 2023

Thank you @raffertyuy. We were able to reproduce and are working on reverting the version bump. (Tested that plugins do work on commit prior to the version bump). We will then look into what caused the problem.

@darakawa
Copy link

darakawa commented Nov 18, 2023

It seems that SK now expects json with camel casing and CC follows OpenAi’s documentation, snake case.
When I removed the attributes forcing snake case in WebSearcher plugin, SK could deserialize and import, but CC breaks because it’s expecting the previous format.

A temporary workaround is adding both camel and snake properties to PluginShared.PluginManifest.

    /// <summary>
    /// Manifest schema version
    /// </summary>
    [JsonPropertyName("schema_version")]
    public string p1 => SchemaVersion;
    public string SchemaVersion { get; set; } = "v1";

@glahaye
Copy link
Collaborator

glahaye commented Nov 19, 2023

Thank you for bringing this issue up.

This should now be fixed with PR #624

@glahaye glahaye closed this as completed Nov 19, 2023
@raffertyuy
Copy link
Author

Confirmed working on my custom plugin. Klarna shopping isn't working still though, but different "Oops..." error.

@glahaye
Copy link
Collaborator

glahaye commented Nov 20, 2023

Another fix is coming for Klarna. It will be in when this PR is merged: #626

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

6 participants