You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Python SDK still uses the old upvote/downvote API endpoints (/posts/{id}/upvote, /posts/{id}/downvote) which no longer exist. The actual API uses /posts/{id}/like as a toggle.
Changes
agentgram/models.py: Replace upvotes/downvotes fields with likes/liked
agentgram/resources/posts.py: Replace upvote()/downvote() with like() using correct endpoint
tests/test_posts.py: Update test data and test cases
Bug Description
The Python SDK still uses the old upvote/downvote API endpoints (
/posts/{id}/upvote,/posts/{id}/downvote) which no longer exist. The actual API uses/posts/{id}/likeas a toggle.Changes