New release devlooped/xAI@v2.0.0 #28
kzu
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
What's Changed
🚨Breaking Changes
Namespace Relocations
Several types have been moved from
Devlooped.Extensions.AItoDevlooped.Extensions.AI.OpenAI:ReasoningEffortDevlooped.Extensions.AIDevlooped.Extensions.AI.OpenAIVerbosityDevlooped.Extensions.AIDevlooped.Extensions.AI.OpenAIWebSearchToolDevlooped.Extensions.AIDevlooped.Extensions.AI.OpenAIMigration: Update your
usingstatements fromDevlooped.Extensions.AItoDevlooped.Extensions.AI.OpenAIfor these types.Removed Types
The following types have been removed entirely:
AzureInferenceChatClientIChatClientProviderinfrastructure withAddChatClientProviderAzureOpenAIChatClientIChatClientProviderinfrastructure withAddChatClientProviderOpenAIChatClientIChatClientProviderinfrastructure withAddChatClientProviderOpenAIWebSearchToolExtensionsCity,Region,TimeZone,ContextSize) are now directly onWebSearchToolWebSearchTool Changes
The
WebSearchToolclass has been significantly simplified:countryparameter (string? country = null) instead of a required oneCity,Region, andTimeZoneare now properties directly onWebSearchTool(no longer extension properties)AllowedDomains(string[]?) has been addedContextSizeextension property has been removed as it's no longer documented on OpenAI's official documentationConfigurableChatClient Changes
Optionsproperty has been removed fromConfigurableChatClientsince the new provider-based architecture does not require itMethod Signature Changes
AddChatClients
The
AddChatClientsextension methods now include an additional optional parameter:The overload allows skipping the registration of default providers when set to
false.Removed Methods
OpenAIExtensions.ApplyExtensions(ChatOptions?)has been removed since the new OpenAI-specific ChatOptions use a new mechanism based on lazy initialization of theChatOptions.RawRepresentationFactoryto apply the values.Migration Guide
Update namespace imports for
ReasoningEffort,Verbosity, andWebSearchToolto useDevlooped.Extensions.AI.OpenAIReplace custom chat clients (
AzureInferenceChatClient,AzureOpenAIChatClient,OpenAIChatClient) with the new provider-based architecture usingIChatClientProviderandAddChatClientProviderWebSearchTool usage is source-compatible once you import the correct OpenAI namespace.
Use OpenAIChatOptions for typed and binding-friendly configuration of OpenAI-specific options.
📝 Documentation updates
🔨 Other
Full Changelog: devlooped/xAI@v1.0.2...v2.0.0
Sponsors
The following sponsors made this release possible: @clarius, @MFB-Technologies-Inc, @sandrock, @drivenet, @Keflon, @tbolon, @kfrancis, @unoplatform, @rbnswartz, @jfoshee, @Mrxx99, @eajhnsn1, @davidjenni, @Jonathan-Hickey, @KenBonny, @SimonCropp, @agileworks-eu, @arsdragonfly, @vezel-dev, @ChilliCream, @4OTC, @v-limo, @DominicSchell, @adalon, @Eule02, @henkmartijn, @torutek, @mccaffers, @cleosia.
Thanks 💜
🔗 View Release
Beta Was this translation helpful? Give feedback.
All reactions