openai-cookbook icon indicating copy to clipboard operation
openai-cookbook copied to clipboard

Update Azure bring your own data cookbooks

Open kristapratico opened this issue 4 months ago • 1 comments

Summary

This does not add new content, just makes necessary updates to existing cookbooks where changes were made in the latest preview Azure OpenAI API version.

  1. The "bring your own data" or "on your own data" feature is now supported via the chat/completions endpoint instead of needing to target extensions/chat/completions. This allows us to remove the extra code/adapter ensuring we target /extensions.
  2. Keyword argument dataSources now accepts snake_case data_sources.
  3. Small change in response structure for context

This PR updates the cookbooks for the above API changes.

Motivation

API changes improve the usability of this feature + need to update cookbooks to ensure these examples continue run successfully


For new content

When contributing new content, read through our contribution guidelines, and mark the following action items as completed:

  • [ ] I have added a new entry in registry.yaml (and, optionally, in authors.yaml) so that my content renders on the cookbook website.
  • [ ] I have conducted a self-review of my content based on the contribution guidelines:
    • [ ] Relevance: This content is related to building with OpenAI technologies and is useful to others.
    • [ ] Uniqueness: I have searched for related examples in the OpenAI Cookbook, and verified that my content offers new insights or unique information compared to existing documentation.
    • [ ] Spelling and Grammar: I have checked for spelling or grammatical mistakes.
    • [ ] Clarity: I have done a final read-through and verified that my submission is well-organized and easy to understand.
    • [ ] Correctness: The information I include is correct and all of my code executes successfully.
    • [ ] Completeness: I have explained everything fully, including all necessary references and citations.

We will rate each of these areas on a scale from 1 to 4, and will only accept contributions that score 3 or higher on all areas. Refer to our contribution guidelines for more details.

kristapratico avatar Feb 22 '24 00:02 kristapratico