Skip to content
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

feat: improved tyings #20

Merged

Conversation

7HR4IZ3
Copy link
Collaborator

@7HR4IZ3 7HR4IZ3 commented Sep 5, 2024

Added type support for other openai.chat.completions.create arguments.

Copy link

linear bot commented Sep 5, 2024

Copy link
Member

@vincelwt vincelwt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @7HR4IZ3, good fix but the problem is we don't want to have the openai dependency in the src/types.ts as some people might not have it installed (that's why we put the monitorOpenAi part in a separate lunary/openai import.

If someone is using langchain without openai for example, this will throw an error

@7HR4IZ3
Copy link
Collaborator Author

7HR4IZ3 commented Sep 8, 2024

Oh alright. I've modified the code.

@vincelwt

@vincelwt vincelwt merged commit bb4b8be into main Oct 19, 2024
@vincelwt vincelwt deleted the llm-1917-lunary-js-fix-type-error-when-adding-response_format branch October 19, 2024 09:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants