Skip to content

Commit

Permalink
dont futz with names
Browse files Browse the repository at this point in the history
  • Loading branch information
mcnuttandrew committed Oct 7, 2024
1 parent f8fbe4d commit 6fab39b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions apps/color-buddy/netlify/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 }],
Expand Down
2 changes: 1 addition & 1 deletion packages/color-namer/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 6fab39b

Please sign in to comment.