pinecone-io / canopy

Retrieval Augmented Generation (RAG) framework and context engine powered by Pinecone
https://www.pinecone.io/
Apache License 2.0
949 stars 115 forks source link

[Feature] support canopy chat --no-rag flag with Azure OpenAI #276

Open orcaman opened 7 months ago

orcaman commented 7 months ago

Is this a new bug?

Current Behavior

All of my Azure OpenAI env vars are set, and I was able to both canopy upsert and canopy start using the Azure OpenAI setup.

When running canopy chat, everything works as expected.

However when running canopy chat --no-rag, after submitting the first prompt, an error is returned: "Error: No OpenAI API key provided. When using the --no-rag flag You will need to have a valid OpenAI API key. Please set the OPENAI_API_KEY environment variable."

Expected Behavior

The expected behavior is that the --no-rag flag would work for the Azure OpenAI setup.

Steps To Reproduce

  1. Setup Azure OpenAI env vars
  2. Run server (canopy start)
  3. Execute canopy chat --no-rag
igiloh-pinecone commented 7 months ago

@orcaman this is currently not supported, canopy chat --no-rag is currently working with OpenAI only.

I changed this issue to a feature request.