semantic-kernel icon indicating copy to clipboard operation
semantic-kernel copied to clipboard

Python: #6501 Anthropic Chat Completion

Open andrewldesousa opened this issue 1 year ago • 3 comments

Motivation and Context

  1. Why is this changed required? Support Anthropic models with Python (#6501)
  2. What problem does it solve? ^^
  3. What scenario does it contribute to? Multi model use cases and applications that would like to use Anthropic models
  4. 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

andrewldesousa avatar Aug 05 '24 14:08 andrewldesousa