93 Commits

Author SHA1 Message Date
Jason Liu b06eb4faa3 refactor(OpenAISchema): improve from_response readability and update tests (#543) 2024-03-29 08:14:26 -04:00
Jason Liu 5c2496c946 feat(instructor): introduce ANTHROPIC_JSON mode (#542) 2024-03-28 23:10:26 -04:00
Jason Liu 6d23442d67 ruff 2024-03-28 18:14:14 -04:00
shreya w cea534fd22 fix: add handling for List[non-object] types (#521)
Co-authored-by: Jason Liu <jxnl@users.noreply.github.com>
2024-03-22 20:37:58 -04:00
Jason Liu 3aff022a7f fix: ruff 2024-03-22 20:33:51 -04:00
Michael Hahn 7fcad59cef doc: better partial support (#527) 2024-03-22 20:28:57 -04:00
Chris Ruppelt 6bfb699b8e feat: anthropic supports enum (#524) 2024-03-22 08:50:02 -04:00
shreya w 8da87c442f feat: support anthropic (non-streaming only) (#512)
Co-authored-by: Jason Liu <jason@jxnl.co>
2024-03-20 17:56:47 -04:00
Jason Liu 8ced667cc2 fix: big refactor of patch.py (#493) 2024-03-07 02:07:11 -05:00
Jason Liu 3e44a6bc30 feat: Improve MD_JSON mode (#490) 2024-03-06 12:57:05 -05:00
Joschka Braun 9aedf730d6 fix: account for multiple times wrapped functions (#476) 2024-03-01 19:04:45 -04:00
Ethan Leifer 23897685f5 doc: move provider examples to hub (#449)
Co-authored-by: Jason Liu <jxnl@users.noreply.github.com>
Co-authored-by: Jason Liu <jason@jxnl.co>
2024-02-19 21:32:43 -05:00
Jason Liu 62919b2cf2 docs: update code snippets and text across multiple documentation files (#450) 2024-02-19 21:02:00 -05:00
Jason Liu 2319fff07e feat(response model): introduce handling of simple types (#447) 2024-02-19 16:49:33 -05:00
Jason Liu 4eedd5e968 feat(Instructor): introduce Instructor Hub with tutorials, examples, and new CLI (#439) 2024-02-17 21:04:35 -05:00
Jason Liu e579144171 Revert "chore: Include types to instructor.patch" (#437) 2024-02-15 14:21:06 -05:00
Ezzeri Esa f0d7889021 chore: Include types to instructor.patch (#422) 2024-02-14 17:37:31 -05:00
Jason Liu f41b8e4948 fix(parallel): enhance error handling in get_types_array and add test case (#423) 2024-02-09 17:59:42 -05:00
Ezzeri Esa d6326824ab chore: Include types to instructor.distil and tests (#396) 2024-02-08 14:52:10 -05:00
Jason Liu f65ba6b407 fix: test for multitask 2024-02-07 10:53:01 -05:00
Jason Liu f9389c18d3 fix: Adding tests to make sure non-stream iterables work (#413) 2024-02-07 09:46:56 -05:00
Jason Liu b6997eace9 bump mktests 2024-02-06 12:25:43 -05:00
Jason Liu b8df2becde Update Documentation 2024-02-05 20:40:50 -05:00
Jason Liu dcb84b1301 Test all of our documentation. (#404)
Co-authored-by: grit-app[bot] <grit-app[bot]@users.noreply.github.com>
2024-02-05 16:42:57 -05:00
Jason Liu edc22b8b8c lint documentation (#403) 2024-02-05 12:24:34 -05:00
Ezzeri Esa 75908132a0 Include types to instructor.function_calls and tests (#394)
Co-authored-by: Jason Liu <jxnl@users.noreply.github.com>
2024-02-04 21:24:45 -05:00
Ezzeri Esa 95fe77414a Remove unused imports (#393) 2024-02-03 14:50:59 -05:00
Jason Liu 91dc19d689 Attempt to implement new retries (#386) 2024-02-01 16:37:05 -05:00
Jason Liu 62e6a40389 Implement Parallel Function Calls with List[Union[T]] (#378) 2024-01-31 23:03:38 -05:00
Jason Liu c7f1ceeb5c Types!!! (#372)
Co-authored-by: Luke Van Seters <lukevanseters@gmail.com>
Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
2024-01-31 22:08:07 -05:00
Jason Liu ef76cfe97b Clean up streaming code (#377) 2024-01-31 18:31:33 -05:00
Jason Liu 792da1db9a add test init file 2024-01-31 00:48:53 -05:00
Jason Liu b7176fb0a2 Together ai support, blog post (#366)
Co-authored-by: Hassan El Mghari <hassan4709@gmail.com>
2024-01-28 19:28:14 -05:00
lazyhope 36871e6917 Introduce total_usage variable to track cumulative token usage (#343)
Co-authored-by: Jason Liu <jason@jxnl.co>
2024-01-13 22:57:28 -05:00
Jason Liu 61b8aff167 ruff 2024-01-11 12:36:19 -05:00
casty c16d622e88 Mc/toolmaxretry (#323) 2024-01-05 14:49:36 -05:00
Muhammad Asim e5048eb938 Add default openai_client in LLM Validator (#311)
Co-authored-by: Jason Liu <jxnl@users.noreply.github.com>
Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
2024-01-03 00:01:37 -05:00
Zbigniew Łukasiak 3f1c99130a __init__.py added for testing individual files in tests/openai (#318) 2024-01-02 13:01:36 -05:00
Jason Liu f4dab8aba0 move tests 2023-12-15 12:44:32 -05:00
Jason Liu f96b74a50a format 2023-12-15 11:25:28 -05:00
Jason Liu 0bb837ff7c move tests 2023-12-15 11:23:29 -05:00
Jason Liu 870e2c80b8 fix exceptions 2023-12-15 11:10:23 -05:00
Dustin Rush c80dd23ec0 added finish reason exception IncompleteOutputException (#279) 2023-12-15 11:09:29 -05:00
Jason Liu b2a38ffe10 Support JSON_OBJECT mode from Anyscale (#275) 2023-12-13 00:05:54 -05:00
Jason Liu 329aad023b add md_mode 2023-12-12 22:48:34 -05:00
Jason Liu 941f10045f Add multitask tests (#265) 2023-12-09 16:09:14 -05:00
Anmol Jawandha 694414e9fd Fix async streaming (#261) 2023-12-09 15:48:06 -05:00
Ashank Tomar 55887865fa Json mode nested models (#263) 2023-12-09 09:46:53 -05:00
Gabriel Garrett 9b7fbbb4f2 Adds ruff linting and formatting (#262) 2023-12-08 12:30:55 -05:00
Alonso Astroza Tagle 202f9cb227 Fixed the system prompt for JSON mode, enabling the use of Pydantic nested models (#249)
Co-authored-by: Jason Liu <jason@jxnl.co>
Co-authored-by: Jason Liu <jxnl@users.noreply.github.com>
2023-12-04 23:47:46 -05:00