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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Show HN: Elelem – TypeScript LLMs with tracing, retries, and type safety

3 点作者 jrhizor超过 1 年前
Elelem is a simple, opinionated, JSON-typed, and traced LLM framework in TypeScript.<p>It&#x27;s a proof of concept but has some nice features:<p>1. Caching (with Redis)<p>2. Tracing (with OpenTelemetry)<p>3. Generated examples of JSON output (using FakerJS), which results in more stable output types.<p>4. Type-safe<p>5. Has retry logic baked-in<p>I&#x27;d appreciate any feedback on the interface and would be happy to answer questions for anyone interested in trying it out.<p>Thanks.

1 comment

gsuuon超过 1 年前
I like the integrated telemetry and caching. It looks like the prompt formatter adds text to the system instruction - have you tried using function calling to get json responses? Does the retry mechanism validate against the zod schema?
评论 #37906352 未加载