Skip to content

Instantly share code, notes, and snippets.

@conwid
Created May 19, 2025 19:59
Show Gist options
  • Select an option

  • Save conwid/30981b73f094b61ae4df69320d9ff67b to your computer and use it in GitHub Desktop.

Select an option

Save conwid/30981b73f094b61ae4df69320d9ff67b to your computer and use it in GitHub Desktop.
Gist created from visual studio extension
public class CustomInferenceBackend(IConfiguration configuration) : IInferenceBackend
{
private readonly OpenAIInferenceBackend openAIInferenceBackend = new OpenAIInferenceBackend(configuration);
public async Task<string> GetChatResponseAsync(ChatParameters options)
{
var resp = await openAIInferenceBackend.GetChatResponseAsync(options);
return resp;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment