Skip to content

Commit 08e02ab

Browse files
committed
fix(aichat): adapt to 百炼
1 parent fb09083 commit 08e02ab

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

data

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ require (
2222
github.com/disintegration/imaging v1.6.2
2323
github.com/fumiama/ahsai v0.1.0
2424
github.com/fumiama/cron v1.3.0
25-
github.com/fumiama/deepinfra v0.0.0-20250812083039-f1b27f21d8c9
25+
github.com/fumiama/deepinfra v0.0.0-20250910022828-8cde75e137f4
2626
github.com/fumiama/go-base16384 v1.7.0
2727
github.com/fumiama/go-registry v0.2.7
2828
github.com/fumiama/gotracemoe v0.0.3

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ github.com/fumiama/ahsai v0.1.0 h1:LXD61Kaj6kJHa3AEGsLIfKNzcgaVxg7JB72OR4yNNZ4=
5959
github.com/fumiama/ahsai v0.1.0/go.mod h1:fFeNnqgo44i8FIaguK659aQryuZeFy+4klYLQu/rfdk=
6060
github.com/fumiama/cron v1.3.0 h1:ZWlwuexF+HQHl3cYytEE5HNwD99q+3vNZF1GrEiXCFo=
6161
github.com/fumiama/cron v1.3.0/go.mod h1:bz5Izvgi/xEUI8tlBN8BI2jr9Moo8N4or0KV8xXuPDY=
62-
github.com/fumiama/deepinfra v0.0.0-20250812083039-f1b27f21d8c9 h1:X2h8RnCgC04LmwBoizYbFawXh/h6CouXmhYtaVuUn7k=
63-
github.com/fumiama/deepinfra v0.0.0-20250812083039-f1b27f21d8c9/go.mod h1:wW05PQSn8mo1mZIoa6LBUE+3xIBjkoONvnfPTV5ZOhY=
62+
github.com/fumiama/deepinfra v0.0.0-20250910022828-8cde75e137f4 h1:cV3HXXLNudIL9rIEYt1RCgl6H4703nE3+jL4pJNsRtc=
63+
github.com/fumiama/deepinfra v0.0.0-20250910022828-8cde75e137f4/go.mod h1:wW05PQSn8mo1mZIoa6LBUE+3xIBjkoONvnfPTV5ZOhY=
6464
github.com/fumiama/go-base16384 v1.7.0 h1:6fep7XPQWxRlh4Hu+KsdH+6+YdUp+w6CwRXtMWSsXCA=
6565
github.com/fumiama/go-base16384 v1.7.0/go.mod h1:OEn+947GV5gsbTAnyuUW/SrfxJYUdYupSIQXOuGOcXM=
6666
github.com/fumiama/go-registry v0.2.7 h1:tLEqgEpsiybQMqBv0dLHm5leia/z1DhajMupwnOHeNs=

plugin/aichat/main.go

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,9 @@ func init() {
126126
mod = model.NewOpenAI(
127127
cfg.ModelName, cfg.Separator,
128128
temperature, topp, maxn,
129-
)
129+
).SetExtra(&map[string]bool{
130+
"enable_thinking": false,
131+
})
130132
case 1:
131133
mod = model.NewOLLaMA(
132134
cfg.ModelName, cfg.Separator,
@@ -516,7 +518,9 @@ func llmchat(prompt string, temp int64) (string, error) {
516518
mod = model.NewOpenAI(
517519
cfg.ModelName, cfg.Separator,
518520
temperature, topp, maxn,
519-
)
521+
).SetExtra(&map[string]bool{
522+
"enable_thinking": false,
523+
})
520524
case 1:
521525
mod = model.NewOLLaMA(
522526
cfg.ModelName, cfg.Separator,

0 commit comments

Comments
 (0)