跳到正文
OpenRouter· @OpenRouter · X·· 7 天前AI 评分43
AI 导读

想知道新模型是否适合你的任务,最好的办法就是在你的任务上实际测试它们。 这里有一个简单的方法,让你的 agent 在 OpenRouter 上通过 generation/content 端点做到这一点。 这个示例使用了一个特定的 generation id,但你可以用你惯用的日志/追踪方法,轻松地在多个 generation 上运行同样的流程。 注意,你需要在 OpenRouter 设置中开启 Input & Output Logging,这才能生效。

正文

The best way to know if you new models will work well for your tasks is to actually test them on your tasks.

Here's an easy way to have your agent do that on OpenRouter with the generation/content endpoint.

This example uses a specific generation id but you can easily run this same process on multiple generations using your logging/tracing method of choice.

Note that you need Input & Output Logging turned on in your OpenRouter settings for this to work.

来源:OpenRouter · x.com