fixes render dockerfile and dalle3 model detection
This commit is contained in:
parent
dc61291933
commit
7f2f324e26
|
@ -17,8 +17,6 @@ ARG GREETING_URL
|
|||
RUN if [ -n "$GREETING_URL" ]; then \
|
||||
curl -sL "$GREETING_URL" > greeting.md; \
|
||||
fi
|
||||
RUN chown -R 1000:1000 /app
|
||||
USER 1000
|
||||
COPY package*.json greeting.md* ./
|
||||
RUN npm install
|
||||
COPY . .
|
||||
|
|
|
@ -98,11 +98,11 @@ export class OpenAIKeyChecker extends KeyCheckerBase<OpenAIKey> {
|
|||
const families = new Set<OpenAIModelFamily>();
|
||||
models.forEach(({ id }) => families.add(getOpenAIModelFamily(id, "turbo")));
|
||||
|
||||
if (families.has("dall-e") && !models.find(({ id }) => id === "dall-e-3")) {
|
||||
if (process.env.DALLE_2_OVERRIDE !== "true") {
|
||||
families.delete("dall-e");
|
||||
}
|
||||
}
|
||||
// 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.
|
||||
// if (families.has("dall-e") && !models.find(({ id }) => id === "dall-e-3")) {
|
||||
// families.delete("dall-e");
|
||||
// }
|
||||
|
||||
// We want to update the key's model families here, but we don't want to
|
||||
// update its `lastChecked` timestamp because we need to let the liveness
|
||||
|
|
Loading…
Reference in New Issue