1
0

feat: Implement a modular skill system with hotword detection, streaming text output, and enhanced logging.

This commit is contained in:
2026-02-27 00:39:32 +01:00
parent 4ee4bc5457
commit a365448399
18 changed files with 451 additions and 23 deletions

View File

@@ -18,6 +18,8 @@ public class LlamaRequest
public LlamaRequestMessage[] Messages { get; set; } = Array.Empty<LlamaRequestMessage>();
[JsonPropertyName("temperature")]
public double Temperature { get; set; } = 0.0;
[JsonPropertyName("stream")]
public bool? Stream { get; set; }
}
public class LlamaResponse
@@ -31,3 +33,22 @@ public class LlamaChoice
[JsonPropertyName("message")]
public LlamaRequestMessage Message { get; set; } = new();
}
public class LlamaStreamResponse
{
[JsonPropertyName("choices")]
public LlamaStreamChoice[] Choices { get; set; } = Array.Empty<LlamaStreamChoice>();
}
public class LlamaStreamChoice
{
[JsonPropertyName("delta")]
public LlamaStreamDelta Delta { get; set; } = new();
}
public class LlamaStreamDelta
{
[JsonPropertyName("content")]
public string? Content { get; set; }
}