Skip to content

.Net: Update dependency on Fluid.Core in PromptTemplates.Liquid to the latest #12340

@vlad-kuznetsov-corvel

Description

@vlad-kuznetsov-corvel

When using PromptTemplates.Liquid alongside other libraries that depend on Fluid.Core v2.x, we run into runtime conflicts such as MissingMethodException due to API differences between Fluid.Core 2.11.1 and >2.11.1

System.MissingMethodException
  HResult=0x80131513
  Message=Method not found: 'Void Fluid.TemplateContext..ctor(Fluid.TemplateOptions)'.
  Source=Microsoft.SemanticKernel.PromptTemplates.Liquid
  StackTrace:
   at Microsoft.SemanticKernel.PromptTemplates.Liquid.LiquidPromptTemplate.GetTemplateContext(KernelArguments arguments)
   at Microsoft.SemanticKernel.PromptTemplates.Liquid.LiquidPromptTemplate.<RenderAsync>d__11.MoveNext()
   at Microsoft.SemanticKernel.KernelFunctionFromPrompt.<>c__DisplayClass22_0.<<RenderPromptAsync>b__1>d.MoveNext()
   at Microsoft.SemanticKernel.Kernel.<InvokeFilterOrPromptRenderAsync>d__36.MoveNext()

This makes it difficult to integrate the extension into projects where Fluid.Core >2.11.1 is already in use.

It would be great if the extension could upgrade its dependency on Fluid.Core to 2.24 assuming compatibility.

Metadata

Metadata

Labels

.NETIssue or Pull requests regarding .NET code

Type

Projects

Status

Sprint: Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions