技巧精选
用确定性代码替代LLM调用
精选理由
Garry Tan分享的LLM调用优化技巧,帮你写出更符合用户需求的代码
Garry Tan提出用确定性代码替代LLM调用可提升代码质量。这种方法能更好地匹配用户需求。确定性代码执行结果可预测,而LLM调用存在不确定性。这种优化适用于需要稳定输出的应用场景。
原文 · Garry Tan
Replacing LLM calls with deterministic code is a no brainer and also results in better code that better matches what users want