mirror of
https://github.com/hanzoai/ai.git
synced 2026-11-21 02:36:49 +00:00
hanzoai/voice holds a conversation and hanzoai/speech holds the models; what was missing was somewhere to run. It had none, so /v1/voice answered 404 in production while the code sat finished, measured and tested in main. api.hanzo.ai already answers /v1/audio/speech and /v1/audio/transcriptions, and the realtime socket is that same audio with the turns joined up — one API host, rather than a second service to build, deploy, route and operate for one package. It adapts through zip.AdaptNetHTTP because a WebSocket has no request/response pair to map a controller method onto. It mounts from controllers because a conversation is billed and usageRecord is written there. The tenant charged is the one IAM resolved, NOT the token's `owner` claim — owner names the application a token was minted through, and reading it as the tenant bills one org for another org's audio. Heard and spoken are both charged, and the caller's own bearer travels to the model so the thinking is billed to whoever spoke rather than to a service account. With no IAM configured nothing is registered at all. A WebSocket does not observe the same-origin policy, so an ungated one is any page on the internet opening a microphone as whoever is signed in; that is the property the first test holds. Co-authored-by: Hanzo Dev <[email protected]>
326 lines
15 KiB
AMPL
326 lines
15 KiB
AMPL
module github.com/hanzoai/ai
|
|
|
|
go 1.26.5
|
|
|
|
// v1.832.18 seals the SECRET MASK as a provider key.
|
|
//
|
|
// It carries sealPastedKey without the guard that recognises object.SecretMask
|
|
// ("***"), which is what the admin API returns for a stored secret and therefore
|
|
// what the console posts back when an operator saves a provider form WITHOUT
|
|
// touching the key field. On that save the literal "***" is sealed into KMS under
|
|
// the provider's own secret name, and because resolution is KMS-first the store
|
|
// then answers "***" for every subsequent read — outranking the environment
|
|
// variable that was serving the real key. The provider stops authenticating
|
|
// upstream, and the row looks correct while it does.
|
|
//
|
|
// Fixed in the next release. Nothing shipped this version: cloud was pinned to
|
|
// v1.832.10 throughout.
|
|
retract v1.832.18
|
|
|
|
require (
|
|
github.com/ThinkInAIXYZ/go-mcp v0.2.24
|
|
github.com/alibabacloud-go/darabonba-openapi v0.1.18
|
|
github.com/alibabacloud-go/darabonba-openapi/v2 v2.1.16
|
|
github.com/alibabacloud-go/ecs-20140526/v4 v4.26.10
|
|
github.com/alibabacloud-go/resourcecenter-20221201 v1.5.1
|
|
github.com/alibabacloud-go/tea v1.4.0
|
|
github.com/alibabacloud-go/tea-utils/v2 v2.0.9
|
|
github.com/alibabacloud-go/vod-20170321/v2 v2.16.10
|
|
github.com/aliyun/alibabacloud-oss-go-sdk-v2 v1.3.0
|
|
github.com/anthropics/anthropic-sdk-go v1.4.0
|
|
github.com/aws/aws-sdk-go-v2 v1.41.5
|
|
github.com/aws/aws-sdk-go-v2/config v1.32.14
|
|
github.com/aws/aws-sdk-go-v2/service/bedrockruntime v1.8.0
|
|
github.com/baidubce/bce-qianfan-sdk/go/qianfan v0.0.14
|
|
github.com/carmel/gooxml v0.0.0-20220216072414-40ff56130850
|
|
github.com/cohere-ai/cohere-go/v2 v2.5.2
|
|
github.com/fasthttp/websocket v1.5.12
|
|
github.com/gage-technologies/mistral-go v1.1.0
|
|
github.com/go-git/go-git/v5 v5.19.1
|
|
github.com/go-sql-driver/mysql v1.10.0
|
|
github.com/google/uuid v1.6.1-0.20241114170450-2d3c2a9cc518
|
|
github.com/hanzo-ds/go v1.0.1
|
|
github.com/hanzoai/account v0.3.2
|
|
github.com/hanzoai/dashscopego v0.6.0
|
|
github.com/hanzoai/dbx v1.17.2
|
|
github.com/hanzoai/decimal v0.1.2
|
|
github.com/hanzoai/go-cosyvoice v1.0.0
|
|
github.com/hanzoai/go-openai v1.41.0
|
|
github.com/hanzoai/go-openrouter v1.0.0
|
|
github.com/hanzoai/money v0.2.5
|
|
github.com/hanzoai/pdf v1.2.0
|
|
github.com/hanzoai/search-go v0.36.0
|
|
github.com/hanzoai/sqlite v0.5.1
|
|
github.com/hanzoai/tasks v1.52.9
|
|
github.com/hanzoai/voice v0.1.1-0.20260815163030-0c26e48ac43f
|
|
github.com/hanzos3/go v1.0.0
|
|
github.com/henomis/lingoose v0.1.0
|
|
github.com/hupe1980/go-huggingface v0.0.15
|
|
github.com/klauspost/compress v1.18.6
|
|
github.com/leverly/ChatGLM v1.2.0
|
|
github.com/lib/pq v1.12.3
|
|
github.com/luxfi/crypto v1.20.2
|
|
github.com/luxfi/geth v1.20.1
|
|
github.com/luxfi/log v1.6.0
|
|
github.com/luxfi/metric v1.10.0
|
|
github.com/luxfi/trace v1.4.0
|
|
github.com/luxfi/zap v1.2.7
|
|
github.com/microsoft/go-mssqldb v1.9.5
|
|
github.com/openai/openai-go/v2 v2.1.1
|
|
github.com/oschwald/geoip2-golang v1.11.0
|
|
github.com/pkoukk/tiktoken-go v0.1.7
|
|
github.com/robfig/cron/v3 v3.0.1
|
|
github.com/schollz/progressbar/v3 v3.18.0
|
|
github.com/shirou/gopsutil v3.21.11+incompatible
|
|
github.com/tealeg/xlsx v1.0.5
|
|
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.3.77
|
|
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/hunyuan v1.3.48
|
|
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tbaas v1.1.13
|
|
github.com/ua-parser/uap-go v0.0.0-20251207011819-db9adb27a0b8
|
|
github.com/valyala/fasthttp v1.72.0
|
|
github.com/volcengine/volcengine-go-sdk v1.0.141
|
|
github.com/wangbin/jiebago v0.3.2
|
|
github.com/workweixin/weworkapi_golang v0.0.0-20200831071321-c1fdfd3d6e7d
|
|
github.com/zap-proto/fiber/v3 v3.2.1
|
|
go.opentelemetry.io/otel/sdk v1.44.0
|
|
golang.org/x/net v0.57.0
|
|
golang.org/x/text v0.40.0
|
|
golang.org/x/time v0.15.0
|
|
k8s.io/api v0.36.2
|
|
k8s.io/apimachinery v0.36.2
|
|
k8s.io/metrics v0.36.1
|
|
sigs.k8s.io/kustomize/api v0.21.1
|
|
sigs.k8s.io/kustomize/kyaml v0.21.1
|
|
)
|
|
|
|
require (
|
|
filippo.io/edwards25519 v1.2.0 // indirect
|
|
github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.13.1 // indirect
|
|
github.com/AzureAD/microsoft-authentication-library-for-go v1.7.0 // indirect
|
|
github.com/alibabacloud-go/alibabacloud-gateway-spi v0.0.5 // indirect
|
|
github.com/alibabacloud-go/debug v1.0.1 // indirect
|
|
github.com/alibabacloud-go/endpoint-util v1.1.0 // indirect
|
|
github.com/alibabacloud-go/openapi-util v0.1.2 // indirect
|
|
github.com/alibabacloud-go/tea-utils v1.4.5 // indirect
|
|
github.com/alibabacloud-go/tea-xml v1.1.3 // indirect
|
|
github.com/aliyun/credentials-go v1.4.7 // indirect
|
|
github.com/andybalholm/brotli v1.2.1 // indirect
|
|
github.com/aws/aws-sdk-go-v2/service/s3 v1.97.3 // indirect
|
|
github.com/aws/aws-sdk-go-v2/service/signin v1.0.9 // indirect
|
|
github.com/bits-and-blooms/bitset v1.24.4 // indirect
|
|
github.com/blang/semver/v4 v4.0.0 // indirect
|
|
github.com/cenkalti/backoff v2.2.1+incompatible // indirect
|
|
github.com/cenkalti/backoff/v4 v4.3.0 // indirect
|
|
github.com/clbanning/mxj/v2 v2.7.0 // indirect
|
|
github.com/clipperhouse/uax29/v2 v2.7.0 // indirect
|
|
github.com/consensys/gnark-crypto v0.20.1 // indirect
|
|
github.com/crate-crypto/go-eth-kzg v1.5.0 // indirect
|
|
github.com/deckarep/golang-set/v2 v2.9.0 // indirect
|
|
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.4.1 // indirect
|
|
github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f // indirect
|
|
github.com/dustin/go-humanize v1.0.1 // indirect
|
|
github.com/ethereum/c-kzg-4844/v2 v2.1.7 // indirect
|
|
github.com/fxamacker/cbor/v2 v2.9.1 // indirect
|
|
github.com/go-errors/errors v1.5.1 // indirect
|
|
github.com/go-faster/city v1.0.1 // indirect
|
|
github.com/go-faster/errors v0.7.1 // indirect
|
|
github.com/go-ini/ini v1.67.0 // indirect
|
|
github.com/go-openapi/swag/cmdutils v0.25.5 // indirect
|
|
github.com/go-openapi/swag/conv v0.25.5 // indirect
|
|
github.com/go-openapi/swag/fileutils v0.25.5 // indirect
|
|
github.com/go-openapi/swag/jsonname v0.25.5 // indirect
|
|
github.com/go-openapi/swag/jsonutils v0.25.5 // indirect
|
|
github.com/go-openapi/swag/loading v0.25.5 // indirect
|
|
github.com/go-openapi/swag/mangling v0.25.5 // indirect
|
|
github.com/go-openapi/swag/netutils v0.25.5 // indirect
|
|
github.com/go-openapi/swag/stringutils v0.25.5 // indirect
|
|
github.com/go-openapi/swag/typeutils v0.25.5 // indirect
|
|
github.com/go-openapi/swag/yamlutils v0.25.5 // indirect
|
|
github.com/go-viper/mapstructure/v2 v2.5.0 // indirect
|
|
github.com/gofiber/schema v1.7.1 // indirect
|
|
github.com/gofiber/utils/v2 v2.0.4 // indirect
|
|
github.com/golang-jwt/jwt/v5 v5.3.1 // indirect
|
|
github.com/golang-sql/sqlexp v0.1.0 // indirect
|
|
github.com/gorilla/rpc v1.2.1 // indirect
|
|
github.com/gorilla/websocket v1.5.4-0.20250319132907-e064f32e3674 // indirect
|
|
github.com/grandcat/zeroconf v1.0.0 // indirect
|
|
github.com/hanzo-ds/native v0.72.0 // indirect
|
|
github.com/hanzoai/authz v1.10.30 // indirect
|
|
github.com/hanzoai/csqlite v0.1.0 // indirect
|
|
github.com/hanzoai/go-openai-realtime v1.0.0 // indirect
|
|
github.com/hanzoai/go-openai-realtime/contrib/ws-gorilla v1.0.0 // indirect
|
|
github.com/hanzoai/sqlcipher v0.1.1 // indirect
|
|
github.com/hanzoai/vfs v0.6.6 // indirect
|
|
github.com/hhrutter/lzw v1.0.0 // indirect
|
|
github.com/hhrutter/pkcs7 v0.2.0 // indirect
|
|
github.com/hhrutter/tiff v1.0.2 // indirect
|
|
github.com/holiman/uint256 v1.3.2 // indirect
|
|
github.com/klauspost/cpuid/v2 v2.3.0 // indirect
|
|
github.com/klauspost/crc32 v1.3.0 // indirect
|
|
github.com/luxfi/accel v1.2.4 // indirect
|
|
github.com/luxfi/cache v1.3.1 // indirect
|
|
github.com/luxfi/consensus v1.36.11 // indirect
|
|
github.com/luxfi/container v0.2.1 // indirect
|
|
github.com/luxfi/corona v0.10.4 // indirect
|
|
github.com/luxfi/crypto/ipa v1.2.4 // indirect
|
|
github.com/luxfi/ids v1.3.2 // indirect
|
|
github.com/luxfi/math v1.5.1 // indirect
|
|
github.com/luxfi/math/big v0.1.0 // indirect
|
|
github.com/luxfi/mdns v0.1.1 // indirect
|
|
github.com/luxfi/mock v0.1.1 // indirect
|
|
github.com/luxfi/pq v1.1.0 // indirect
|
|
github.com/luxfi/zapdb v1.10.1 // indirect
|
|
github.com/mattn/go-colorable v0.1.15 // indirect
|
|
github.com/mattn/go-runewidth v0.0.21 // indirect
|
|
github.com/miekg/dns v1.1.72 // indirect
|
|
github.com/minio/crc64nvme v1.1.1 // indirect
|
|
github.com/minio/md5-simd v1.1.2 // indirect
|
|
github.com/mitchellh/colorstring v0.0.0-20190213212951-d06e56a500db // indirect
|
|
github.com/monochromegane/go-gitignore v0.0.0-20200626010858-205db1a8cc00 // indirect
|
|
github.com/mr-tron/base58 v1.3.0 // indirect
|
|
github.com/ncruces/go-strftime v1.0.0 // indirect
|
|
github.com/onsi/gomega v1.39.1 // indirect
|
|
github.com/paulmach/orb v0.13.0 // indirect
|
|
github.com/philhofer/fwd v1.2.0 // indirect
|
|
github.com/pierrec/lz4/v4 v4.1.27 // indirect
|
|
github.com/pkg/errors v0.9.1 // indirect
|
|
github.com/rivo/uniseg v0.4.7 // indirect
|
|
github.com/rs/xid v1.6.0 // indirect
|
|
github.com/savsgio/gotils v0.0.0-20240704082632-aef3928b8a38 // indirect
|
|
github.com/segmentio/asm v1.2.1 // indirect
|
|
github.com/shopspring/decimal v1.4.0 // indirect
|
|
github.com/stretchr/objx v0.5.3 // indirect
|
|
github.com/supranational/blst v0.3.16 // indirect
|
|
github.com/tidwall/sjson v1.2.5 // indirect
|
|
github.com/tinylib/msgp v1.6.4 // indirect
|
|
github.com/tjfoc/gmsm v1.4.1 // indirect
|
|
github.com/valyala/bytebufferpool v1.0.0 // indirect
|
|
github.com/x448/float16 v0.8.4 // indirect
|
|
github.com/xlab/treeprint v1.2.0 // indirect
|
|
github.com/yuin/gopher-lua v1.1.1 // indirect
|
|
github.com/zap-proto/go v1.3.0 // indirect
|
|
github.com/zap-proto/http v0.3.5 // indirect
|
|
github.com/zap-proto/mcp v1.0.5 // indirect
|
|
go.mongodb.org/mongo-driver v1.17.9 // indirect
|
|
go.opentelemetry.io/otel/log v0.20.0 // indirect
|
|
go.opentelemetry.io/otel/sdk/log v0.20.0 // indirect
|
|
go.uber.org/atomic v1.11.0 // indirect
|
|
go.yaml.in/yaml/v2 v2.4.4 // indirect
|
|
go.yaml.in/yaml/v3 v3.0.4 // indirect
|
|
golang.org/x/image v0.41.0 // indirect
|
|
gopkg.in/evanphx/json-patch.v4 v4.13.0 // indirect
|
|
gopkg.in/natefinch/lumberjack.v2 v2.2.1 // indirect
|
|
modernc.org/libc v1.72.3 // indirect
|
|
modernc.org/mathutil v1.7.1 // indirect
|
|
modernc.org/memory v1.11.0 // indirect
|
|
modernc.org/sqlite v1.51.0 // indirect
|
|
sigs.k8s.io/structured-merge-diff/v6 v6.3.2 // indirect
|
|
)
|
|
|
|
require (
|
|
dario.cat/mergo v1.0.2 // indirect
|
|
github.com/Microsoft/go-winio v0.6.2 // indirect
|
|
github.com/ProtonMail/go-crypto v1.1.6 // indirect
|
|
github.com/alicebob/miniredis/v2 v2.38.0
|
|
github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.7.8 // indirect
|
|
github.com/aws/aws-sdk-go-v2/credentials v1.19.14 // indirect
|
|
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.18.21 // indirect
|
|
github.com/aws/aws-sdk-go-v2/internal/configsources v1.4.21 // indirect
|
|
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.7.21 // indirect
|
|
github.com/aws/aws-sdk-go-v2/internal/ini v1.8.6 // indirect
|
|
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.13.7 // indirect
|
|
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.13.21 // indirect
|
|
github.com/aws/aws-sdk-go-v2/service/sso v1.30.15 // indirect
|
|
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.35.19 // indirect
|
|
github.com/aws/aws-sdk-go-v2/service/sts v1.41.10 // indirect
|
|
github.com/aws/smithy-go v1.24.2 // indirect
|
|
github.com/baidubce/bce-sdk-go v0.9.264 // indirect
|
|
github.com/cespare/xxhash/v2 v2.3.0 // indirect
|
|
github.com/cloudflare/circl v1.6.3 // indirect
|
|
github.com/coder/websocket v1.8.15 // indirect
|
|
github.com/cyphar/filepath-securejoin v0.7.0 // indirect
|
|
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
|
|
github.com/dgrijalva/jwt-go v3.2.0+incompatible // indirect
|
|
github.com/dlclark/regexp2 v1.11.5 // indirect
|
|
github.com/emirpasic/gods v1.18.1 // indirect
|
|
github.com/fsnotify/fsnotify v1.9.0 // indirect
|
|
github.com/gabriel-vasile/mimetype v1.4.13 // indirect
|
|
github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376 // indirect
|
|
github.com/go-git/go-billy/v5 v5.9.0 // indirect
|
|
github.com/go-logr/logr v1.4.3 // indirect
|
|
github.com/go-logr/stdr v1.2.2 // indirect
|
|
github.com/go-ole/go-ole v1.3.0 // indirect
|
|
github.com/go-openapi/jsonpointer v0.22.5 // indirect
|
|
github.com/go-openapi/jsonreference v0.21.5 // indirect
|
|
github.com/go-openapi/swag v0.25.5 // indirect
|
|
github.com/golang-jwt/jwt/v4 v4.5.2
|
|
github.com/golang-sql/civil v0.0.0-20220223132316-b832511892a9 // indirect
|
|
github.com/golang/groupcache v0.0.0-20241129210726-2c02b8208cf8 // indirect
|
|
github.com/google/gnostic-models v0.7.1 // indirect
|
|
github.com/hanzoai/types v0.1.0
|
|
github.com/hanzokv/go/v9 v9.22.0
|
|
github.com/hashicorp/golang-lru v1.0.2 // indirect
|
|
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect
|
|
github.com/jmespath/go-jmespath v0.4.0 // indirect
|
|
github.com/json-iterator/go v1.1.13-0.20220915233716-71ac16282d12 // indirect
|
|
github.com/kevinburke/ssh_config v1.2.0 // indirect
|
|
github.com/lithammer/shortuuid v3.0.0+incompatible // indirect
|
|
github.com/luxfi/vm v1.3.2 // indirect
|
|
github.com/mattn/go-isatty v0.0.22 // indirect
|
|
github.com/mitchellh/mapstructure v1.5.1-0.20231216201459-8508981c8b6c // indirect
|
|
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
|
|
github.com/modern-go/reflect2 v1.0.3-0.20250322232337-35a7c28c31ee // indirect
|
|
github.com/orcaman/concurrent-map/v2 v2.0.1 // indirect
|
|
github.com/oschwald/maxminddb-golang v1.13.0 // indirect
|
|
github.com/pdfcpu/pdfcpu v0.11.0
|
|
github.com/pelletier/go-toml/v2 v2.3.0 // indirect
|
|
github.com/pjbgf/sha1cd v0.6.0 // indirect
|
|
github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec // indirect
|
|
github.com/sagikazarmark/locafero v0.12.0 // indirect
|
|
github.com/sergi/go-diff v1.4.0 // indirect
|
|
github.com/sirupsen/logrus v1.9.4 // indirect
|
|
github.com/skeema/knownhosts v1.3.1 // indirect
|
|
github.com/spf13/afero v1.15.0 // indirect
|
|
github.com/spf13/cast v1.10.0 // indirect
|
|
github.com/spf13/pflag v1.0.10 // indirect
|
|
github.com/spf13/viper v1.21.0 // indirect
|
|
github.com/subosito/gotenv v1.6.0 // indirect
|
|
github.com/tidwall/gjson v1.18.0 // indirect
|
|
github.com/tidwall/match v1.2.0 // indirect
|
|
github.com/tidwall/pretty v1.2.1 // indirect
|
|
github.com/tklauser/go-sysconf v0.4.0 // indirect
|
|
github.com/tklauser/numcpus v0.12.0 // indirect
|
|
github.com/volcengine/volc-sdk-golang v1.0.241 // indirect
|
|
github.com/xanzy/ssh-agent v0.3.3 // indirect
|
|
github.com/yosida95/uritemplate/v3 v3.0.2 // indirect
|
|
github.com/yusufpapurcu/wmi v1.2.4 // indirect
|
|
github.com/zap-proto/zip v1.31.0
|
|
go.opentelemetry.io/auto/sdk v1.2.1 // indirect
|
|
go.opentelemetry.io/otel v1.44.0
|
|
go.opentelemetry.io/otel/metric v1.44.0 // indirect
|
|
go.opentelemetry.io/otel/trace v1.44.0
|
|
go.uber.org/mock v0.6.0 // indirect
|
|
golang.org/x/crypto v0.54.0 // indirect
|
|
golang.org/x/exp v0.0.0-20260529124908-c761662dc8c9 // indirect
|
|
golang.org/x/mod v0.37.0 // indirect
|
|
golang.org/x/oauth2 v0.36.0
|
|
golang.org/x/sync v0.22.0 // indirect
|
|
golang.org/x/sys v0.47.0 // indirect
|
|
golang.org/x/term v0.45.0 // indirect
|
|
golang.org/x/tools v0.47.0 // indirect
|
|
google.golang.org/protobuf v1.36.12-0.20260120151049-f2248ac996af // indirect
|
|
gopkg.in/inf.v0 v0.9.1 // indirect
|
|
gopkg.in/ini.v1 v1.67.1 // indirect
|
|
gopkg.in/warnings.v0 v0.1.2 // indirect
|
|
gopkg.in/yaml.v2 v2.4.0 // indirect
|
|
gopkg.in/yaml.v3 v3.0.1
|
|
k8s.io/klog/v2 v2.140.0 // indirect
|
|
k8s.io/kube-openapi v0.0.0-20260330154417-16be699c7b31 // indirect
|
|
k8s.io/utils v0.0.0-20260319190234-28399d86e0b5 // indirect
|
|
sigs.k8s.io/json v0.0.0-20250730193827-2d320260d730 // indirect
|
|
sigs.k8s.io/randfill v1.0.0 // indirect
|
|
sigs.k8s.io/yaml v1.6.0 // indirect
|
|
)
|
|
|
|
exclude github.com/hanzoai/o11y v1.5.31-0.20260726155004-2b66f3201d03
|