microsoft / chat-copilot

MIT License
2.06k stars 701 forks source link

incorrect paths when developing plugins #320

Closed stakach closed 1 year ago

stakach commented 1 year ago

Describe the bug

When working with plugins, copilot incorrectly generates the plugin paths. i.e. when making requests that should be /todo it's making a request to /.well-known/ai-plugin.json/todo

This is using gpt-4 model for both completion and planner

image

it does work if I give it a hint

image

but annoyingly I need to provide that hint every time it interacts with the plugin otherwise it reverts to using /.well-known/ai-plugin.json as the base path

Platform

stakach commented 1 year ago

the plugin does work properly at https://chat.openai.com/

alliscode commented 1 year ago

Hi @stakach, thanks for letting us know about this issue. Would you mind providing the entire openapi specification so that we can help debug what's going on here?

stakach commented 1 year ago

gist of openapi spec https://gist.github.com/stakach/66fecac5e253a1efd992e0535b1cf766

alliscode commented 1 year ago

Thanks for providing that, we'll try to reproduce the issue. In the meantime, I notice that your openapi spec does not define the servers and I'm wondering if this could be part of the issue. Can you add a servers section and see if that helps?

Example from ChatGPT Plugins OpenAPI Defenition :

servers:
  - url: http://localhost:3333
alliscode commented 1 year ago

@stakach I hope this has helped with your issue. If your still seeing problems after adding the servers field in the spec then please let us know. Thanks!