rubberduck-ai / rubberduck-vscode

Use AI-powered code edits, explanations, code generation, error diagnosis, and chat in Visual Studio Code with the official OpenAI API.
https://marketplace.visualstudio.com/items?itemName=Rubberduck.rubberduck-vscode
MIT License
582 stars 70 forks source link

In some queries, the output contains parameter names instead of values #69

Closed matthewvb77 closed 1 year ago

matthewvb77 commented 1 year ago

Describe the bug

When I start a chat and ask "what model is this?" as a first query, the response contains "[model_name]" and "[model_function]" instead of the actual values.

The query "what version of the extension is this?" receives a response with the same error, "This extension is version [version_number]."

How to reproduce

  1. CTRL + SHIFT + P
  2. Rubberduck: Start Chat
  3. As the first query, ask "what model is this?"
  4. The response is "This model is a [model_name]. It is used to [model_function]. If you need more information, please let me know."

Expected behavior

I expected the parameter values, or the response, "This question cannot be answered without more information." as text-davinci-003 responded on OpenAI's playground.

Additional information

lgrammel commented 1 year ago

Rubberduck has no knowledge about itself, so this won't work. Here are the prompts that are being used for the basic chat if you're interested: https://github.com/rubberduck-ai/rubberduck-vscode/blob/main/template/chat/chat-en.rdt.md