semantic-kernel
semantic-kernel copied to clipboard
Python: #6501 Anthropic Chat Completion
Motivation and Context
- Why is this changed required? Support Anthropic models with Python (#6501)
- What problem does it solve? ^^
- What scenario does it contribute to? Multi model use cases and applications that would like to use Anthropic models
- If it fixes an open issue, please link to the issue here: #6501
Description
The changes made follow the designs followed by the Mistral AI and Open AI connectors.
I added the following Classes :
- AnthropicChatPromptExcecutionSettings
- AnthropicChatCompletion
- AnthropicSettings
To test the changes with the tests please add ANTHROPIC_API_KEY and ANTHROPIC_CHAT_MODEL_ID as Enviorment Variable
What is implemented:
- [X] Integrate Anthropic ChatCompletion Models without Streaming
- [X] Integrate Anthropic Chat Completion Models with Streaming
- [X] Unit tests and integration tests
- [X] Extended Testing including Unit Testing & More Integration Tests
Contribution Checklist
- [X] The code builds clean without any errors or warnings
- [X] The PR follows the SK Contribution Guidelines and the pre-submission formatting script raises no violations
- [X] All unit tests pass, and I have added new tests where possible
- [X] I didn't break anyone :smile: