minor change
This commit is contained in:
parent
266356dffd
commit
472bf46a2f
|
|
@ -85,6 +85,7 @@ public class WaveStreamChannel : IStreamChannel
|
||||||
public void ClearBuffer()
|
public void ClearBuffer()
|
||||||
{
|
{
|
||||||
_bufferedWaveProvider?.ClearBuffer();
|
_bufferedWaveProvider?.ClearBuffer();
|
||||||
|
_audioBufferQueue?.Clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void WaveIn_DataAvailable(object? sender, WaveInEventArgs e)
|
private void WaveIn_DataAvailable(object? sender, WaveInEventArgs e)
|
||||||
|
|
|
||||||
|
|
@ -280,7 +280,7 @@ public class RealTimeCompletionProvider : IRealTimeCompletion
|
||||||
var agent = await agentService.LoadAgent(conn.CurrentAgentId);
|
var agent = await agentService.LoadAgent(conn.CurrentAgentId);
|
||||||
var (prompt, messages, options) = PrepareOptions(agent, []);
|
var (prompt, messages, options) = PrepareOptions(agent, []);
|
||||||
|
|
||||||
var instruction = messages.FirstOrDefault()?.Content.FirstOrDefault()?.Text ?? agent?.Description;
|
var instruction = messages.FirstOrDefault()?.Content.FirstOrDefault()?.Text ?? agent?.Description ?? string.Empty;
|
||||||
var functions = options.Tools.Select(x =>
|
var functions = options.Tools.Select(x =>
|
||||||
{
|
{
|
||||||
var fn = new FunctionDef
|
var fn = new FunctionDef
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue