Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Commit

Permalink
Deprecate Model.permissions
Browse files Browse the repository at this point in the history
This field is no longer returned by OpenAI
  • Loading branch information
TheoKanning committed Nov 12, 2023
1 parent 7fbd0a7 commit 8768a49
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion api/src/main/java/com/theokanning/openai/model/Model.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@ public class Model {
public String ownedBy;

/**
* List of permissions for this model
* List of permissions for this model. No longer returned by OpenAI
*/
@Deprecated
public List<Permission> permission;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,5 @@ void getModel() {

assertEquals("ada", ada.id);
assertEquals("openai", ada.ownedBy);
assertFalse(ada.permission.isEmpty());
}
}

0 comments on commit 8768a49

Please sign in to comment.