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 for retrive session in sync and async both #7

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

Conversation

cheesecake100201
Copy link

This error is occuring because, in the main implementation of this API endpoint, its a post request (Even though it should be a GET request) and agent_id and session_id are being passed in the body where as this method is sending it in query_params which is causing a 400 Error and a pydantic error of FASTAPI. This is a fix for now but might suggest converting fetching methods in implementation to be converted into GET methods in llama stack repo.

Copy link
Contributor

@yanxi0830 yanxi0830 left a comment

Choose a reason for hiding this comment

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

The client SDK is auto-generated based on OpenAPI spec. This should be fixed with the server webmethod endpoint and OpenAPI spec instead.

@cheesecake100201
Copy link
Author

cheesecake100201 commented Oct 25, 2024

The client SDK is auto-generated based on OpenAPI spec. This should be fixed with the server webmethod endpoint and OpenAPI spec instead.

So do you mean I should change the implementation on the server side in the llama stack repo or do I make changes in OpenAPI spec or both?
@yanxi0830

@yanxi0830
Copy link
Contributor

@cheesecake100201 Yes, I think we should make sure (1) server side is also implemented as GET (2) OpenAPI spec is a GET (3) client SDK is a GET.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants