Azure-Samples / azure-search-openai-javascript

A TypeScript sample app for the Retrieval Augmented Generation pattern running on Azure, using Azure AI Search for retrieval and Azure OpenAI and LangChain large language models (LLMs) to power ChatGPT-style and Q&A experiences.
MIT License
237 stars 121 forks source link

Choices might be undefined when the project just started. #201

Closed tebayoso closed 4 months ago

tebayoso commented 4 months ago

Please provide us with the following information:

This issue is for a: (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

Spin Up a New Project in your local. The conversation is empty, and the choices are undefined as there's no previous context.

Any log messages given by the failure

Console displays some errors when invoking functions or attributes no present in the choices object.

Expected/desired behavior

A new conversation on an empty project should have no choices, but should not display any error.

OS and Version?

All Environments.

azd version?

azd version 1.9.0 (commit 651394c3ddcfadff194d177f8b0ddf06fe3752bf)

Versions

Mention any other details that might be useful


Thanks! We'll be in touch soon.