skunit icon indicating copy to clipboard operation
skunit copied to clipboard

Add better support for using OpenAI subscriptions

Open hootanht opened this issue 1 year ago • 1 comments

Fixes #2

Add support for configuring OpenAI subscriptions directly.

  • README.md:
    • Add instructions for configuring OpenAI subscriptions.
    • Update example code to include OpenAI configuration.
  • src/skUnit/Asserts/SemanticAssert.cs:
    • Add a new constructor to accept OpenAI API key directly.
  • src/skUnit/Asserts/SemanticKernelAssert_Initialize.cs:
    • Add a new constructor to accept OpenAI API key directly.
  • src/skUnit.Tests/SemanticAssertTests/SemanticAssertTests.cs:
    • Add tests for the new OpenAI constructor.
    • Update existing tests to include OpenAI configuration.

hootanht avatar Sep 02 '24 17:09 hootanht

@hootanht wow... thank you for contributing :)

mehrandvd avatar Sep 02 '24 17:09 mehrandvd

The latest changes already add support for OpenAI subscription and support for IChatClient. Now you can pass an IChatClient which can be instantiated using any provider.

So, I'm closing this PR.

mehrandvd avatar Jan 20 '25 08:01 mehrandvd