TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: I made an app to help my gf cook experimentally

1 点作者 L_226大约 1 年前
I like to cook, my gf does not - so usually I do the cooking. But sometimes, she wants to, except then we often have fairly random ingredients at home. She is someone who needs to follow a recipe, so I made an app where you can take a photo of the ingredients you have and chatGPT will come up with a reasonable looking recipe.<p>I did also want to learn LLM integrations, so there was an ulterior motive ;)<p>You can try it out for yourself, but you need to create an account (currently the requests to openAI cost me money).<p>Stack is React + material UI, talking to FastAPI with the openAI python package as main LLM interface, all hosted on digitalocean. I did check out langchain, may decide to integrate that in the future.<p>I am somewhat disappointed by the openAI API, you can supposedly specify JSON responses only by setting the relevant request parameter, but that does not always work(!) Additionally, the API will seemingly randomly decide to reject requests, both GPT-Vision and GPT3.5-turbo (and GPT4), for content violations. And these violations don&#x27;t always set the relevant field in the response object, sometimes the response looks fine but the message string is some variation of &quot;error: contentViolation&quot; (never consistent). I tested this many times using the same exact inputs, both image and text. The API will definitely complain if the ingredients are too diverse, e.g. soy sauce and apples will usually raise a content violation.<p>I am setting up prompt context (you are PantryBot, an AI recipe generator... etc.) using sets of system prompts as specified in their API docs, but who knows.<p>Probably the most reliable part of the whole system is the ingredient recognition - it usually even translates German or other language packaging into English descriptions. The usual shortcomings of LLM outputs apply to the recipes, YMMV.<p>I did also develop automatic illustrations for recipes - both method step-by-step illustrations and one of the final dish. This was extremely unreliable both by generating content violations but also just completely unrelated images, so it is disabled for now.<p>One day I may decide to self host an LLM with some amount of additional fine tuning or RAG or whatever.<p>Finally - I delayed posting this because I originally had the donation link pointing to buymeacoffee, but they disabled my account for fraud (after I had already had some donations...) and will not reply to the appeal. So now I&#x27;m using ko-fi, let&#x27;s see how long that lasts.<p>Looking forward to your feedback!

暂无评论

暂无评论