Unable to inference image using PromptFunction #6814
-
Hi, Is there any way to view the raw request (rendered prompt) sent to OAI in SK so we can compare? Can you please assist? Code snippets of SK call below. Semantic Kernelvar builder = Kernel.CreateBuilder();
builder.Services.AddSingleton(loggerFactory);
var kernel = builder.AddOpenAIChatCompletion("gpt-4o", "oursecretkey")
.Build();
using StreamReader reader = new(Assembly.GetExecutingAssembly().GetManifestResourceStream("SomeNamespace.Prompts.TranscribeImage.prompt.yaml")!);
KernelFunction getIntent = kernel.CreateFunctionFromPromptYaml(
await reader.ReadToEndAsync(),
promptTemplateFactory: new HandlebarsPromptTemplateFactory()
);
var result = await kernel.InvokeAsync(getIntent); Output
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @vicperdana !
It looks like Is it possible to modify YAML file so the image will be in the same format as in Postman? |
Beta Was this translation helpful? Give feedback.
Fixed after updating the handlebar template.