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: patch user_id in header #1843

Merged
merged 3 commits into from
Oct 8, 2024
Merged

fix: patch user_id in header #1843

merged 3 commits into from
Oct 8, 2024

Conversation

cpacker
Copy link
Collaborator

@cpacker cpacker commented Oct 8, 2024

#1825 (comment)


letta server

When you use an invalid user_id that doesn't exist:

% curl --request GET \
  --url http://localhost:8283/v1/agents/ \
  --header 'user_id: banana'
{"detail":"User with id banana not found"}

When you don't specify a user_id (server uses the default):

% curl --request GET \
  --url http://localhost:8283/v1/agents/
[{"description":null,"metadata_":{"human":"basic","persona":"sam_pov"},"user_id":"user-00000000","id":"agent-16ffdc6b-fc6b-42...

When you specify a user_id (here I'm using the default):

% curl --request GET \
  --url http://localhost:8283/v1/agents/ \
  --header 'user_id: user-00000000'
[{"description":null,"metadata_":{"human":"basic","persona":"sam_pov"},"user_id":"user-00000000","id":"agent-16ffdc6b-fc6b-427d-aeac

@sarahwooders sarahwooders merged commit 4a01ca3 into main Oct 8, 2024
14 checks passed
@cpacker cpacker deleted the patch-header-user-id branch October 8, 2024 17:22
mattzh72 pushed a commit that referenced this pull request Oct 9, 2024
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