From 6fab39ba9cc95f4b1296a8bd74cb713a1a9e95ce Mon Sep 17 00:00:00 2001 From: Andrew Michael McNutt Date: Mon, 7 Oct 2024 13:37:46 -0600 Subject: [PATCH] dont futz with names --- apps/color-buddy/netlify/utils.ts | 4 ++-- packages/color-namer/main.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/color-buddy/netlify/utils.ts b/apps/color-buddy/netlify/utils.ts index d1c94a7f..6bf41584 100644 --- a/apps/color-buddy/netlify/utils.ts +++ b/apps/color-buddy/netlify/utils.ts @@ -37,8 +37,8 @@ const engines = { anthropic: (prompt: string) => anthropic.messages.create({ // model: "claude-3-opus-20240229", - // model: "claude-3-haiku-20240307", - model: "claude-3-sonnet-20240229", + model: "claude-3-haiku-20240307", + // model: "claude-3-sonnet-20240229", max_tokens: 256, temperature: 0, messages: [{ role: "user", content: prompt }], diff --git a/packages/color-namer/main.ts b/packages/color-namer/main.ts index 0317339b..0f5515c3 100644 --- a/packages/color-namer/main.ts +++ b/packages/color-namer/main.ts @@ -5,7 +5,7 @@ import { colorCentersFromStoneHeer } from "color-buddy-color-lists"; type ColorName = { color: Color; name: string }; function closestColors(color: Color, colors: ColorName[]): ColorName[] { return colors - .map((x) => ({ ...x, dist: color.symmetricDeltaE(x.color, "OK") })) + .map((x) => ({ ...x, dist: color.symmetricDeltaE(x.color) })) .sort((a, b) => a.dist - b.dist); }