-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Ted/move examples to openai cookbook #112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@t-asutedjo, recently we decided to move our code examples in the openai-python library to a new home: the OpenAI Cookbook repo. The goal of this separation is to keep this openai-python library lightweight and dependency-free as we continue to write more and more examples. I've already copied over your two Azure examples to the OpenAI Cookbook repo (and I'll copy over your latest commit soon). With the above PR, my plan is to delete your two Azure examples, and replace them with short messages with links to the new OpenAI Cookbook location. Any future changes you want to make to them (or new examples you want to introduce) will be warmly accepted there. Is that plan ok with you? If not, I'm happy to leave your examples here and/or move them at a later date. Also happy to discuss further. Won't merge this PR until we've had a chance to get on the same page. |
eed95a9
to
b921cfc
Compare
That's fine with me, what do you think @sorinsuciu-msft ? |
HI Ted, yes, we discussed this with Chris already and it's fine from our side. |
* Hallacy/pickleable exceptions (openai#109) * Exceptions in python are hard to pickle. Make Exceptions pickleable * Remove debug * Added tests * nit * Change embeddings call to openai.Embedding.create (openai#110) * Change embeddings call to openai.Embedding.create * And update model names * Untweak notebook * Support encoded embeddings response (openai#111) * Support encoded embeddings response * Removed imports * Add a couple of comments * Typo * Remove CA bundle (openai#112) * Remove CA bundle * Removed some references
* Hallacy/pickleable exceptions (openai#109) * Exceptions in python are hard to pickle. Make Exceptions pickleable * Remove debug * Added tests * nit * Change embeddings call to openai.Embedding.create (openai#110) * Change embeddings call to openai.Embedding.create * And update model names * Untweak notebook * Support encoded embeddings response (openai#111) * Support encoded embeddings response * Removed imports * Add a couple of comments * Typo * Remove CA bundle (openai#112) * Remove CA bundle * Removed some references
* removes examples (which can now be found in the OpenAI Cookbook repo) * Update numpy requirements due to vuln in 1.21.6 * adds api_type to ErrorObject * formats by Black
Fix streaming in chat completions
Primarily, this PR removes the examples from the openai-python library to help keep the library simple and lightweight.
Secondly, this PR: