This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Assistant | |
| version: 1.0.0 | |
| schema: v1 | |
| models: | |
| - name: Gemma 3 12B | |
| provider: ollama | |
| model: gemma3:12b | |
| roles: | |
| - chat | |
| - edit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import "fmt" | |
| func SliceToMap[I ~[]V, K comparable, V any](arr I, keyFunc func(i int) K) map[K]V { | |
| m := make(map[K]V) | |
| for i := range arr { | |
| m[keyFunc(i)] = arr[i] | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "inbounds": [ | |
| { | |
| "port": 1080, | |
| "protocol": "vmess", | |
| "sniffing": { | |
| "enabled": true, | |
| "destOverride": ["http", "tls"] | |
| }, | |
| "streamSettings": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "encoding/gob" | |
| "encoding/json" | |
| "math/rand" | |
| "os" | |
| "strconv" | |
| "strings" | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package broadcast | |
| import ( | |
| "sync" | |
| ) | |
| var brokers = make(map[string]*Broker) | |
| type Broker struct { | |
| stopCh chan struct{} |