github microsoft/semantic-kernel python-0.4.4.dev

latest releases: dotnet-1.15.1-nightly-240705.1, dotnet-1.15.1-nightly-240704.1, dotnet-1.15.1...
6 months ago

Notable Updates

AIRequestSettings

We're excited to introduce AIRequestSettings, a versatile and efficient way to configure request settings in our Semantic Kernel platform. This new feature offers three methods to cater to different use cases and preferences:

  • Base Class Method: Utilize the AIRequestSettings base class for a generic approach. This method is ideal for storing settings for various services within the same extension_data field. However, be aware that it dynamically creates a specific request setting class for each call, which might introduce overhead if using only a single service. Additionally, this approach lacks type checking, meaning errors may surface during the dynamic creation process.

  • Direct Service Method: Create request settings specifically tailored to the service you're using, like AzureOpenAIChatRequestSettings. This approach provides type checking and is recommended when working with a single service or multiple instances of a similar service (e.g., gpt-3.5-turbo and gpt-4 in OpenAI for chat).

  • Kernel-Based Method: Generate request settings via the kernel, based on the registered service class. This method is highly specific, returning a request settings class that's pre-configured for your service, including pre-filled fields such as service_id and ai_model_id.

Each method has been designed to streamline your interaction with our services, ensuring a more efficient and error-resistant setup. Choose the one that best suits your project's needs!

Visit the following kernel example to see the configuration in action.

What's Changed

Full Changelog: python-0.4.3.dev...python-0.4.4.dev

Don't miss a new semantic-kernel release

NewReleases is sending notifications on new releases.