Skip to content

Commit

Permalink
fix: Corrected response_model usage (#1036)
Browse files Browse the repository at this point in the history
  • Loading branch information
GlitchStorm authored Feb 21, 2024
1 parent 536e59a commit 436c84d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion memgpt/server/rest_api/admin/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def get_api_keys(
raise
except Exception as e:
raise HTTPException(status_code=500, detail=f"{e}")
return CreateAPIKeyResponse(api_key=processed_tokens)
return GetAPIKeyResponse(api_key=processed_tokens)

@router.delete("/users/keys", tags=["admin"], response_model=DeleteAPIKeyResponse)
def delete_api_key(
Expand Down

0 comments on commit 436c84d

Please # to comment.