Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ feat: support Anthropic Context Caching #6704

Merged
merged 12 commits into from
Mar 7, 2025

Conversation

arvinxx
Copy link
Contributor

@arvinxx arvinxx commented Mar 4, 2025

💻 变更类型 | Change Type

  • ✨ feat
  • 🐛 fix
  • ♻️ refactor
  • 💄 style
  • 👷 build
  • ⚡️ perf
  • 📝 docs
  • 🔨 chore

🔀 变更说明 | Description of Change

📝 补充信息 | Additional Information

image

Copy link

vercel bot commented Mar 4, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
lobe-chat-database ✅ Ready (Inspect) Visit Preview Mar 7, 2025 10:09am
lobe-chat-desktop ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 7, 2025 10:09am
lobe-chat-preview ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 7, 2025 10:09am

@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Mar 4, 2025
@lobehubbot
Copy link
Member

👍 @arvinxx

Thank you for raising your pull request and contributing to our Community
Please make sure you have followed our contributing guidelines. We will review it as soon as possible.
If you encounter any problems, please feel free to connect with us.
非常感谢您提出拉取请求并为我们的社区做出贡献,请确保您已经遵循了我们的贡献指南,我们会尽快审查它。
如果您遇到任何问题,请随时与我们联系。

@arvinxx arvinxx changed the title feat/anthropic-context-caching ✨ feat: support anthropic Context Caching Mar 4, 2025
@arvinxx arvinxx changed the title ✨ feat: support anthropic Context Caching ✨ feat: support Anthropic Context Caching Mar 4, 2025
Copy link

codecov bot commented Mar 4, 2025

Codecov Report

Attention: Patch coverage is 88.58561% with 46 lines in your changes missing coverage. Please review.

Project coverage is 91.31%. Comparing base (9f09952) to head (a6ced0b).
Report is 11 commits behind head on main.

Files with missing lines Patch % Lines
packages/web-crawler/src/crawImpl/naive.ts 0.00% 19 Missing ⚠️
src/libs/agent-runtime/utils/anthropicHelpers.ts 72.97% 10 Missing ⚠️
...c/store/chat/slices/builtinTool/actions/searXNG.ts 78.57% 6 Missing ⚠️
src/store/chat/slices/thread/selectors/index.ts 14.28% 6 Missing ⚠️
src/libs/agent-runtime/anthropic/index.ts 90.00% 3 Missing ⚠️
src/libs/agent-runtime/azureai/index.ts 50.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6704      +/-   ##
==========================================
+ Coverage   91.30%   91.31%   +0.01%     
==========================================
  Files         724      727       +3     
  Lines       67967    68179     +212     
  Branches     4566     4790     +224     
==========================================
+ Hits        62055    62260     +205     
- Misses       5912     5919       +7     
Flag Coverage Δ
app 91.31% <88.58%> (+0.01%) ⬆️
server 97.57% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@lobehubbot
Copy link
Member

❤️ Great PR @arvinxx ❤️

The growth of project is inseparable from user feedback and contribution, thanks for your contribution! If you are interesting with the lobehub developer community, please join our discord and then dm @arvinxx or @canisminor1990. They will invite you to our private developer channel. We are talking about the lobe-chat development or sharing ai newsletter around the world.
项目的成长离不开用户反馈和贡献,感谢您的贡献! 如果您对 LobeHub 开发者社区感兴趣,请加入我们的 discord,然后私信 @arvinxx@canisminor1990。他们会邀请您加入我们的私密开发者频道。我们将会讨论关于 Lobe Chat 的开发,分享和讨论全球范围内的 AI 消息。

github-actions bot pushed a commit that referenced this pull request Mar 7, 2025
## [Version&nbsp;1.69.0](v1.68.11...v1.69.0)
<sup>Released on **2025-03-07**</sup>

#### ✨ Features

- **misc**: Support Anthropic Context Caching.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's improved

* **misc**: Support Anthropic Context Caching, closes [#6704](#6704) ([471e3ed](471e3ed))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
@lobehubbot
Copy link
Member

🎉 This PR is included in version 1.69.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

github-actions bot pushed a commit to jaworldwideorg/OneJA-Bot that referenced this pull request Mar 7, 2025
## [Version&nbsp;1.17.0](v1.16.8...v1.17.0)
<sup>Released on **2025-03-07**</sup>

#### ✨ Features

- **misc**: Support Anthropic Context Caching.

#### 💄 Styles

- **misc**: Add Gemini 2.0 Flash model variations, add QwQ models.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's improved

* **misc**: Support Anthropic Context Caching, closes [lobehub#6704](https://github.com/jaworldwideorg/OneJA-Bot/issues/6704) ([471e3ed](471e3ed))

#### Styles

* **misc**: Add Gemini 2.0 Flash model variations, closes [lobehub#6679](https://github.com/jaworldwideorg/OneJA-Bot/issues/6679) ([d5a8fcb](d5a8fcb))
* **misc**: Add QwQ models, closes [lobehub#6770](https://github.com/jaworldwideorg/OneJA-Bot/issues/6770) ([cd30fcc](cd30fcc))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
github-actions bot pushed a commit to bentwnghk/lobe-chat that referenced this pull request Mar 8, 2025
## [Version&nbsp;1.110.0](v1.109.4...v1.110.0)
<sup>Released on **2025-03-08**</sup>

#### ♻ Code Refactoring

- **misc**: Refactor the agent runtime implement.

#### ✨ Features

- **misc**: Support Anthropic Context Caching.

#### 💄 Styles

- **misc**: Add Gemini 2.0 Flash model variations, Add login ui for next-auth, Add Qwen QwQ model, add QwQ models.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Refactor the agent runtime implement, closes [lobehub#6784](https://github.com/bentwnghk/lobe-chat/issues/6784) ([14a9874](14a9874))

#### What's improved

* **misc**: Support Anthropic Context Caching, closes [lobehub#6704](https://github.com/bentwnghk/lobe-chat/issues/6704) ([471e3ed](471e3ed))

#### Styles

* **misc**: Add Gemini 2.0 Flash model variations, closes [lobehub#6679](https://github.com/bentwnghk/lobe-chat/issues/6679) ([d5a8fcb](d5a8fcb))
* **misc**: Add login ui for next-auth, closes [lobehub#6434](https://github.com/bentwnghk/lobe-chat/issues/6434) ([541f275](541f275))
* **misc**: Add Qwen QwQ model, closes [lobehub#6783](https://github.com/bentwnghk/lobe-chat/issues/6783) ([3d3c2ce](3d3c2ce))
* **misc**: Add QwQ models, closes [lobehub#6770](https://github.com/bentwnghk/lobe-chat/issues/6770) ([cd30fcc](cd30fcc))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released size:L This PR changes 100-499 lines, ignoring generated files.
Projects
None yet
2 participants