fix: change model, add CLAUDE file
Some checks failed
Build and Push / build (push) Has been cancelled
Some checks failed
Build and Push / build (push) Has been cancelled
This commit is contained in:
parent
6b6778508f
commit
abf2a3f05a
2 changed files with 21 additions and 1 deletions
20
CLAUDE.md
Normal file
20
CLAUDE.md
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
# Caltrack
|
||||
|
||||
## WHAT
|
||||
- This is a calorie counter web application, written in Go
|
||||
- It has a Terminal-like UI
|
||||
|
||||
## WHY
|
||||
- The idea of the app is to have a very simple, straight forward UI
|
||||
- It should reduce looking up nutrition facts
|
||||
- It should pre-calculate the activity level kcal and how much to consume to loose x amount of weight per week
|
||||
|
||||
## HOW
|
||||
- It is a web app/API written in Go
|
||||
- It starts a http file server to serve the web/index.html file
|
||||
- It is deployed on my own OVH VPS, behind a Caddy server which redirects calls to /caltrack/*
|
||||
- It is served as a web frontend
|
||||
- It has a API handlers to create and delete entries
|
||||
- The API also provides handlers to get data for any given day
|
||||
- It can store settings, like your weight, height, gender
|
||||
- It uses Claude AI API calls to read human text and converts it into an API call to get nutrition facts out
|
||||
2
ai/ai.go
2
ai/ai.go
|
|
@ -66,7 +66,7 @@ func (c *Client) EstimateCalories(ctx context.Context, description string, entry
|
|||
prompt := fmt.Sprintf("Estimate calories for this %s: %s", entryType, description)
|
||||
|
||||
msg, err := client.Messages.New(ctx, anthropic.MessageNewParams{
|
||||
Model: "claude-haiku-4-5-20251001",
|
||||
Model: "claude-sonnet-4-6",
|
||||
MaxTokens: 1024,
|
||||
System: []anthropic.TextBlockParam{
|
||||
{Text: systemPrompt},
|
||||
|
|
|
|||
Loading…
Reference in a new issue