Tags: sockthem/openai-python
Tags
Support model-based (/engineless) completions in openai cli (openai#20) * Support model-based (/engineless) completions in openai cli (openai#31) * Engineless completions in the SDK * Cosmetic improvements to fine tuning CLI * Remove done TODO * Raise error if neither engine nor model provided * Undocument the `timeout` parameter on completions, because it doesn't do anything and causes user confusion. * Move things around * Update message * Some day we should care about versions * Minor version bump
Remove support for py <3.6, mypy, lots of cleanup (openai#19) * python 3.6 + typing (openai#25) - Formally require Python 3.6 or later. This never worked under Python 2.7. - Drop now-unnecessary `__future__` and `six` references. - Use `py.typed` to declare that we support type hints. - Fix a variety of mypy errors. - Don't use star imports, so that other packages can tell if they're making an invalid reference. - Drop support for non-`requests` HTTP clients. - Drop `EngineAPIResource.update`; it could never have worked. Tested against primaryapi and engineapi in staging, and it doesn't break them. After this, `mypy ./openai` runs clean. * delete unused code (openai#27) - Delete `ListObject`. It has some typing errors that suggest it never worked, and it is unused as far as I can tell. - Delete `VerifyMixin`. It is unused. - Delete `CardError`. It is unused and smells of rotten pasta. - Delete `OpenAIErrorWithParamCode`, which only has one subclass, `InvalidRequestError`, and make `InvalidRequestError` a direct subclass of `OpenAIError`. Currrently, `OpenAIErrorWithParamCode` depends on the internal structure of `InvalidRequestError` so they're not independent. * boring formatting and typing fixes (openai#26) These are another step towards being able to enforce black, flake8, and mypy on CI. * fix more typing issues in prep for CI (openai#28) - Simplify `platform.XXX` calls. As far as I know these can't raise an exception in Python 3. - Simplify `EngineAPIResource` constructor and remove its unused `retrieve` method. * Update readme, bump version * typo fix Co-authored-by: Madeleine Thompson <[email protected]> Co-authored-by: Madeleine Thompson <[email protected]>
Update interface (openai#16) * CLI cleanup * Also support uploading files as a convenience to the user * Events in the CLI (openai#23) * Events in the CLI * Update message about ctrl-c * Version * Forgot to use the api_base arg (openai#20) * Forgot to use the api_base arg * Bump version * newline Co-authored-by: hallacy <[email protected]>
migrate to 0.6.0 (openai#7) * Add support for modifying files and file_set support (openai#4) * Add support for modifying files and file_set support * Bump version * Updated file sets to use name everywhere * Bump to 0.4.0 * Added cli support for file and fileset (openai#5) * Added cli support for file and fileset * Back to .4.0 * Typo * Add some basic tests to confirm that array stuff works * Added a test for multiple prompts. * refactor retriever endpoint (openai#6) * Make higherlevel have class methods so you can call with openai.HigherLevel.answer (openai#7) * refactor retriever endpoint * Actually just make everything a classmethod so you can call it like openai.HigherLevel * Rename file_sets to collections everywhere (openai#8) * Rename file_sets to collections everywhere * Remove collections (openai#10) * Higherlevel endpoints now point to /v1 (openai#11) * Higherlevel endpoints now point to v1 * new line * Move answer and classification to top level attributes, rename higherlevel (openai#12) * Move answer and classification to top level attributes * New namespaces for answers and classifications * Meant to make the method create * Go up the class stack since we don't need all the things that engineapiresource gives us * Add file support to search (openai#13) * Add file support to search * Add support for max_rerank * Added return_metadata support * Fixed some cherry pick issues