-
Notifications
You must be signed in to change notification settings - Fork 73
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
Fix traceable and wrapOpenAI #640
Merged
Merged
Commits on Apr 29, 2024
-
- Switch out implementation for generating parallel CJS build - Follow guidelines from here microsoft/TypeScript#54567
Configuration menu - View commit details
-
Copy full SHA for 3238a4b - Browse repository at this point
Copy the full SHA 3238a4bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 18c05ac - Browse repository at this point
Copy the full SHA 18c05acView commit details
Commits on Apr 30, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 74e173d - Browse repository at this point
Copy the full SHA 74e173dView commit details -
Add failing tests for traceable
- errors throw from sync and async functions should result in errored run - errors thrown by promise of async generator should result in errored run containing all output until then - interrupted promise of async generator should result in cancelled (errored) run containing all output until then - regular async generator (without promise wrapper) should be supported in success, error and interrupt cases
Configuration menu - View commit details
-
Copy full SHA for aec89af - Browse repository at this point
Copy the full SHA aec89afView commit details -
Implement correct error and cancellation handling in traceable, ensur…
…e traceable doesn't modify return value of wrapped function - if function returns a subclass of promise return proxy object combining original return value and "traced" promise - if function returns async generator (without promise wrapper) do not wrap it in a promise - handle errors thrown in generator functions - handle errors thrown in sync functions - handle generator cancellations - handle errors thrown by tracing client
Configuration menu - View commit details
-
Copy full SHA for 482b053 - Browse repository at this point
Copy the full SHA 482b053View commit details -
Add failing tests for openai sdk wrapper
- Use custom return value methods on openai[.chat].completions.create() - Test that call-time metadata is attached to run
Configuration menu - View commit details
-
Copy full SHA for 9c388b8 - Browse repository at this point
Copy the full SHA 9c388b8View commit details -
Configuration menu - View commit details
-
Copy full SHA for a14639c - Browse repository at this point
Copy the full SHA a14639cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 33637c5 - Browse repository at this point
Copy the full SHA 33637c5View commit details -
Re-implement openai sdk using traceable decorator directly
- also fix return type of patched openai sdk (it was missing lots of methods on the original)
Configuration menu - View commit details
-
Copy full SHA for cd0ecaa - Browse repository at this point
Copy the full SHA cd0ecaaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0de86a9 - Browse repository at this point
Copy the full SHA 0de86a9View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.