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

fix: Explicity setting use_async to False while adding langchain_factory decorator #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

utmishra
Copy link

Why?

  • ChainLLM currently supports only the following LLMs for Async API: OpenAI, PromptLayerOpenAI, ChatOpenAI and Anthropic
  • use_async is a required parameter while adding the langchain_factory decorator though (otherwise you receive ValueError: langchain_factory use_async parameter is required error)
  • Setting use_async as True throws: Async generation not implemented for this LLM:
Screenshot 2023-06-18 at 01 31 26
  • Setting use_async to False fixes the problem:
Screenshot 2023-06-18 at 02 02 48

@utmishra utmishra mentioned this pull request Jun 18, 2023
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.

1 participant