Repository navigation
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 |
Replies: 1 comment 2 replies
|
Hi Vic Perdana (@vicperdana) ! It looks like Is it possible to modify YAML file so the image will be in the same format as in Postman? |

Fixed after updating the handlebar template.