fixes OAI trial keys bricking the dall-e queue
This commit is contained in:
parent
02a54bf4e3
commit
6f626e623e
|
@ -73,6 +73,12 @@ export class OpenAIKeyChecker extends KeyCheckerBase<OpenAIKey> {
|
||||||
|
|
||||||
const families = new Set<OpenAIModelFamily>();
|
const families = new Set<OpenAIModelFamily>();
|
||||||
models.forEach(({ id }) => families.add(getOpenAIModelFamily(id, "turbo")));
|
models.forEach(({ id }) => families.add(getOpenAIModelFamily(id, "turbo")));
|
||||||
|
|
||||||
|
// disable dall-e for trial keys due to very low per-day quota that tends to
|
||||||
|
// render the key unusable.
|
||||||
|
if (key.isTrial) {
|
||||||
|
families.delete("dall-e");
|
||||||
|
}
|
||||||
|
|
||||||
// as of 2023-11-18, many keys no longer return the dalle3 model but still
|
// as of 2023-11-18, many keys no longer return the dalle3 model but still
|
||||||
// have access to it via the api for whatever reason.
|
// have access to it via the api for whatever reason.
|
||||||
|
|
Loading…
Reference in New Issue