feat: migrate codes from previous project

This commit is contained in:
ECSS 11
2026-01-19 02:10:24 -06:00
parent 00c0f457c5
commit 724fe14c0e
15 changed files with 420 additions and 10 deletions

21
internal/silicon/types.go Normal file
View File

@@ -0,0 +1,21 @@
package silicon
type Response struct {
Id string `json:"id"`
Type string `json:"type"`
Content []struct {
Text string `json:"text"`
} `json:"content"`
}
type RequestBody struct {
Model string `json:"model"`
Messages []*Message `json:"messages"`
Temperature float64 `json:"temperature"`
MaxTokens int `json:"max_tokens"`
}
type Message struct {
Role string `json:"role"`
Content string `json:"content"`
}