refactor: import shared Plexum-anthropic-compat-client lib

Same refactor as Plexum-minimax-provider — drop the duplicated
internal/{anthropic,translate}, import from the shared
Plexum-anthropic-compat-client repo. UserAgent + ExtraHeaders fields
the Kimi plugin needs already live on Client there.

No behavioral change. Live re-verified after refactor: plexum say →
"ready" (via Kimi K2.6).
This commit is contained in:
h z
2026-05-31 20:35:11 +01:00
parent 01577ddfe8
commit 0a889250a6
6 changed files with 10 additions and 742 deletions

10
go.mod
View File

@@ -2,6 +2,12 @@ module git.hangman-lab.top/hzhang/Plexum-kimi-provider
go 1.24.2
require git.hangman-lab.top/hzhang/Plexum-sdk-go v0.0.0
require (
git.hangman-lab.top/hzhang/Plexum-anthropic-compat-client v0.0.0
git.hangman-lab.top/hzhang/Plexum-sdk-go v0.0.0
)
replace git.hangman-lab.top/hzhang/Plexum-sdk-go => ../Plexum-sdk-go
replace (
git.hangman-lab.top/hzhang/Plexum-anthropic-compat-client => ../Plexum-anthropic-compat-client
git.hangman-lab.top/hzhang/Plexum-sdk-go => ../Plexum-sdk-go
)