Skip to content

Commit

Permalink
set_latest -> latest
Browse files Browse the repository at this point in the history
  • Loading branch information
isahers1 committed Sep 20, 2024
1 parent e3d2f23 commit 4eaa1bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libs/sdk-js/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ export class AssistantsClient extends BaseClient {
* @returns The updated assistant.
*/
async setLatest(assistantId: string, version: number): Promise<Assistant> {
return this.fetch<Assistant>(`/assistants/${assistantId}/set_latest`, {
return this.fetch<Assistant>(`/assistants/${assistantId}/latest`, {
method: "POST",
json: { version },
});
Expand Down
2 changes: 1 addition & 1 deletion libs/sdk-py/langgraph_sdk/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,7 @@ async def set_latest(self, assistant_id: str, version: int) -> Assistant:
payload: Dict[str, Any] = {"version": version}

return await self.http.post(
f"/assistants/{assistant_id}/set_latest", json=payload
f"/assistants/{assistant_id}/latest", json=payload
)


Expand Down

0 comments on commit 4eaa1bb

Please sign in to comment.