Skip to content

Commit

Permalink
specify no concurrency in GPT4All models
Browse files Browse the repository at this point in the history
  • Loading branch information
dlqqq committed Dec 6, 2023
1 parent 102a85a commit 822b2a7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/jupyter-ai-magics/jupyter_ai_magics/providers.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,11 @@ def __init__(self, **kwargs):
async def _acall(self, *args, **kwargs) -> Coroutine[Any, Any, str]:
return await self._call_in_executor(*args, **kwargs)

@property
def allows_concurrency(self):
# At present, GPT4All providers fail with concurrent messages. See #481.
return False


HUGGINGFACE_HUB_VALID_TASKS = (
"text2text-generation",
Expand Down

0 comments on commit 822b2a7

Please sign in to comment.