God, Love, News, Event, Entertainment, Amebo,..... All about Bringing out the best in you...
Show HN: A lightweight LLM proxy to get structured results from most LLMs https://ift.tt/uAbTkQp
Show HN: A lightweight LLM proxy to get structured results from most LLMs Hey HN! After struggling with complex prompt engineering and unreliable parsing, we built L1M, a simple API that lets you extract structured data from unstructured text and images. curl -X POST https://ift.tt/1bVnux6 \ -H "Content-Type: application/json" \ -H "X-Provider-Url: demo" \ -H "X-Provider-Key: demo" \ -H "X-Provider-Model: demo" \ -d '{ "input": "A particularly severe crisis in 1907 led Congress to enact the Federal Reserve Act in 1913", "schema": { "type": "object", "properties": { "items": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string" }, "price": { "type": "number" } } } } } } }' This is actually a component we unbundled from our larger because we think it's useful on its own. It's fully open source (MIT license) and you can: - Use with text or images - Bring your own model (OpenAI, Anthropic, or any compatible API) - Run locally with Ollama for privacy - Cache responses with customizable TTL The code is at https://ift.tt/mgHIpM3 with SDKs for Node.js, Python, and Go. Would love to hear if this solves a pain point for you! https://l1m.io February 26, 2025 at 10:45PM
Subscribe to:
Post Comments (Atom)
Show HN: Collecte MTL – Montreal waste collection schedules (web and iOS) https://ift.tt/2ekFW6l
Show HN: Collecte MTL – Montreal waste collection schedules (web and iOS) I know it should be useful to very few people from here, but I...
-
submitted by /u/Dull_Tonight [link] [comments] source https://www.reddit.com/r/worldnews/comments/pehy48/housing_secretary_robert_je...
-
Show HN: Lindra – generate browser agents to automate any website Hi HN, We’re one month into building Lindra, a platform that turns any web...
-
Show HN: High-precision date/time in SQLite https://ift.tt/hEvedVC August 12, 2024 at 03:47AM
No comments:
Post a Comment