2023-01-06 12:36:47 -05:00
|
|
|
package com.theokanning.openai.model;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* GPT-3 model permissions
|
|
|
|
* I couldn't find documentation for the specific permissions, and I've elected to leave them undocumented rather than
|
|
|
|
* write something incorrect.
|
|
|
|
*
|
|
|
|
* https://beta.openai.com/docs/api-reference/models
|
|
|
|
*/
|
2023-01-06 12:46:06 -05:00
|
|
|
|
2023-01-06 12:36:47 -05:00
|
|
|
public class Permission {
|
|
|
|
/**
|
|
|
|
* An identifier for this model permission
|
|
|
|
*/
|
|
|
|
public String id;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The type of object returned, should be "model_permission"
|
|
|
|
*/
|
|
|
|
public String object;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The creation time in epoch seconds.
|
|
|
|
*/
|
|
|
|
public long created;
|
|
|
|
|
|
|
|
public boolean allowCreateEngine;
|
|
|
|
|
|
|
|
public boolean allowSampling;
|
|
|
|
|
|
|
|
public boolean allowLogProbs;
|
|
|
|
|
|
|
|
public boolean allowSearchIndices;
|
|
|
|
|
|
|
|
public boolean allowView;
|
|
|
|
|
|
|
|
public boolean allowFineTuning;
|
|
|
|
|
|
|
|
public String organization;
|
|
|
|
|
|
|
|
public String group;
|
|
|
|
|
|
|
|
public boolean isBlocking;
|
|
|
|
|
|
|
|
public String getId() {
|
|
|
|
return id;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setId(String id) {
|
|
|
|
this.id = id;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getObject() {
|
|
|
|
return object;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setObject(String object) {
|
|
|
|
this.object = object;
|
|
|
|
}
|
|
|
|
|
|
|
|
public long getCreated() {
|
|
|
|
return created;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setCreated(long created) {
|
|
|
|
this.created = created;
|
|
|
|
}
|
|
|
|
|
|
|
|
public boolean isAllowCreateEngine() {
|
|
|
|
return allowCreateEngine;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setAllowCreateEngine(boolean allowCreateEngine) {
|
|
|
|
this.allowCreateEngine = allowCreateEngine;
|
|
|
|
}
|
|
|
|
|
|
|
|
public boolean isAllowSampling() {
|
|
|
|
return allowSampling;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setAllowSampling(boolean allowSampling) {
|
|
|
|
this.allowSampling = allowSampling;
|
|
|
|
}
|
|
|
|
|
|
|
|
public boolean isAllowLogProbs() {
|
|
|
|
return allowLogProbs;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setAllowLogProbs(boolean allowLogProbs) {
|
|
|
|
this.allowLogProbs = allowLogProbs;
|
|
|
|
}
|
|
|
|
|
|
|
|
public boolean isAllowSearchIndices() {
|
|
|
|
return allowSearchIndices;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setAllowSearchIndices(boolean allowSearchIndices) {
|
|
|
|
this.allowSearchIndices = allowSearchIndices;
|
|
|
|
}
|
|
|
|
|
|
|
|
public boolean isAllowView() {
|
|
|
|
return allowView;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setAllowView(boolean allowView) {
|
|
|
|
this.allowView = allowView;
|
|
|
|
}
|
|
|
|
|
|
|
|
public boolean isAllowFineTuning() {
|
|
|
|
return allowFineTuning;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setAllowFineTuning(boolean allowFineTuning) {
|
|
|
|
this.allowFineTuning = allowFineTuning;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getOrganization() {
|
|
|
|
return organization;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setOrganization(String organization) {
|
|
|
|
this.organization = organization;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getGroup() {
|
|
|
|
return group;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setGroup(String group) {
|
|
|
|
this.group = group;
|
|
|
|
}
|
|
|
|
|
|
|
|
public boolean isBlocking() {
|
|
|
|
return isBlocking;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setBlocking(boolean blocking) {
|
|
|
|
isBlocking = blocking;
|
|
|
|
}
|
|
|
|
}
|