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 context cache #21

Merged
merged 7 commits into from
Jul 30, 2024
Merged

feat: support context cache #21

merged 7 commits into from
Jul 30, 2024

Conversation

1067088037
Copy link
Contributor

Describe the change
Support context cache.

Provide Moonshot documentation link
Provide a relevant API doc from https://platform.moonshot.cn/docs/api/caching

Describe your solution
Add chat_completions_builder.go and api_context_cache_test.go.

Additional context

Issue: #20

@northes northes added the enhancement New feature or request label Jul 18, 2024
@1067088037
Copy link
Contributor Author

我使用的 Moonshot 账号等级目前还达不到官方对于上下文缓存的最低要求Tier3. 因此我还没有对上下文缓存的功能进行测试,这个 PR 仅仅是对官方文档的还原。

@1067088037
Copy link
Contributor Author

I now have an account that meets the requirements of Moonshot and have completed the test.

@northes northes merged commit 20e9fba into northes:main Jul 30, 2024
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants