csdn/CSDN博文备份/Discourse中集成Claude3.7Sonnet模型-145890945.md
2025-02-26 23:10:21 +08:00

1 line
2.8 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<p>如果 Discourse 实例已经接入了 Anthropic。</p> <br><p>那么只需要在后台挑一个不希望继续使用的模型改下就好。</p> <br><p>否则需要重新在 Discourse 实例中配置 AI然后获得 Anthropic 的 key。</p> <br><p>进入后台的 AI 然后选择 LLMs</p> <br><p></p> <br><p></p> <br><p class="img-center"><a href="https://cdn.isharkfly.com/com-isharkfly-www/discourse-uploads/original/3X/9/9/99dbba0d68ba96dd821678ac79c0466542fb021c.jpeg" rel="nofollow"><img alt="2025-02-26_09-57-59" height="500" src="https://i-blog.csdnimg.cn/img_convert/5e7954f26735d0921b585afde467f16a.jpeg" width="578" /></a></p> <br><p></p> <br><p></p> <br><p>虽然我们这里已经显示成 3.7 了,但实际上所有内容都是从 3.0 改的。</p> <br><p>单击后面的编辑。</p> <br><h3>LLMs</h3> <br><p>在 Name中输入<code>Claude 3.7 Sonnet</code> 用于区分其他模型。</p> <br><p></p> <br><p></p> <br><p class="img-center"><a href="https://cdn.isharkfly.com/com-isharkfly-www/discourse-uploads/original/3X/3/1/3141850ef664b61cfa716769b15fcb9ab8f1c3f0.jpeg" rel="nofollow"><img alt="2025-02-26_10-00-03" height="500" src="https://i-blog.csdnimg.cn/img_convert/4fbf1c2a65490d1d425651b9dbfb0531.jpeg" width="397" /></a></p> <br><p></p> <br><p>随后保存提交,同时还可以进行测试。</p> <br><p>如果测试没有问题则会显示成功。</p> <br><h3>Discourse 测试</h3> <br><p>对于新的模型可以在 Discourse 中进行测试。</p> <br><p>选择定义的新模型,如果模型名字没有刷新,那么有可能缓存问题,可以强制刷新下页面和退出登录后重新登录。</p> <br><p></p> <br><p></p> <br><p class="img-center"><a href="https://cdn.isharkfly.com/com-isharkfly-www/discourse-uploads/original/3X/d/6/d65344157a40017754c6ddb06727c6b741702aa1.jpeg" rel="nofollow"><img alt="2025-02-26_10-01-36" height="342" src="https://i-blog.csdnimg.cn/img_convert/75f13dbb9c9c83413b6b780ac7d62526.jpeg" width="690" /></a></p> <br><p></p> <br><h3>校验 API 调用</h3> <br><p>登录 Anthropic 后台查看下使用量。</p> <br><p>确定已经有模型 3.7 的使用量,那么则说明调用配置成功了。</p> <br><p></p> <br><p></p> <br><p class="img-center"><a href="https://cdn.isharkfly.com/com-isharkfly-www/discourse-uploads/original/3X/c/8/c81156c3ae0544987efd6a3bb41a91ea2ddd3752.jpeg" rel="nofollow"><img alt="2025-02-26_10-03-01" height="357" src="https://i-blog.csdnimg.cn/img_convert/6ba5f294fe6f8445770715d1c50b8c8d.jpeg" width="690" /></a></p> <br><p></p> <br><p>在 Discourse 中添加模型挺简单的,基本上可以无缝集成不同的模型。</p> <br><p></p> <br><p><a href="https://www.isharkfly.com/t/discourse-claude-3-7-sonnet/16987" rel="nofollow" title="Discourse 中集成 Claude 3.7 Sonnet 模型 - Discourse - iSharkFly">Discourse 中集成 Claude 3.7 Sonnet 模型 - Discourse - iSharkFly</a></p>