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

Missing Request Schema for SageMaker Endpoint in jupyter-ai Extension #1006

Open
Naveen-Annam-CMA opened this issue Sep 20, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Naveen-Annam-CMA
Copy link

Description:

When trying to use a SageMaker Endpoint as the completion model in the jupyter-ai chat UI, we encounter the following error:

Traceback (most recent call last):
  File "/home/ubuntu/miniconda/lib/python3.10/site-packages/jupyter_ai/chat_handlers/base.py", line 196, in on_message
    await self.process_message(message)
  File "/home/ubuntu/miniconda/lib/python3.10/site-packages/jupyter_ai/chat_handlers/default.py", line 96, in process_message
    self.get_llm_chain()
  File "/home/ubuntu/miniconda/lib/python3.10/site-packages/jupyter_ai/chat_handlers/base.py", line 345, in get_llm_chain
    self create_llm_chain(lm_provider, lm_provider_params)
  File "/home/ubuntu/miniconda/lib/python3.10/site-packages/jupyter_ai/chat_handlers/default.py", line 38, in create_llm_chain
    llm = provider(**unified_parameters)
  File "/home/ubuntu/miniconda/lib/python3.10/site-packages/jupyter_ai_magics/partner_providers/aws.py", line 205, in __init__
    request_schema = kwargs.pop("request_schema")
KeyError: 'request_schema'

Error related to a missing request_schema. We have set all the required fields (including the request_schema) but we seem to be encountering the above. It appears that the request schema for the SageMaker Endpoint is missing or not being properly handled by the extension.

Environment:

  • Platform: JupyterLab running on AWS with jupyter-ai Extension
  • Issue: Missing request_schema when using SageMaker Endpoint as the completion model.

Request for Assistance:

  • Please help resolve the missing request_schema issue for SageMaker Endpoint.
@Naveen-Annam-CMA Naveen-Annam-CMA added the bug Something isn't working label Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant