You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: add support and documentation for Anthropic API service (#212)
- Add support for Anthropic API service
- Update README to include Anthropic API in the list of supported services
- Provide configuration instructions for using Anthropic API
- Add links to Anthropic API documentation and model list
Signed-off-by: Bo-Yi Wu <[email protected]>
- Supports Git prepare-commit-msg Hook, see the [Git Hooks documentation](https://git-scm.com/book/en/v2/Customizing-Git-Git-Hooks).
26
26
- Supports customizing generated diffs with n lines of context, the default is three.
@@ -132,6 +132,23 @@ codegpt config set openai.model gemini-1.5-flash-latest
132
132
[61]: https://ai.google.dev/gemini-api/docs
133
133
[62]: https://aistudio.google.com/app/apikey
134
134
135
+
## Support [Anthropic][100] API Service
136
+
137
+
Build with the Anthropic API, you can see the [Anthropic API documentation][101]. Update the `provider` and `api_key` in your config file. Please create an API key from the [Anthropic API][102] page.
138
+
139
+
```sh
140
+
codegpt config set openai.provider anthropic
141
+
codegpt config set openai.api_key xxxxxxx
142
+
codegpt config set openai.model claude-3-5-sonnet-20241022
143
+
```
144
+
145
+
See the model list from the [Anthropic API documentation][103].
0 commit comments