Skip to content

Commit 0e511a4

Browse files
committed
#153: Apply chat params in the streaming chat workflow
1 parent c8a2d18 commit 0e511a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/routers/router.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,9 +151,9 @@ func (r *LangRouter) ChatStream(
151151
}
152152

153153
langModel := model.(providers.LangModel)
154-
params := req.Params(langModel.ID(), langModel.ModelName())
154+
chatParams := req.Params(langModel.ID(), langModel.ModelName())
155155

156-
modelRespC, err := langModel.ChatStream(ctx, params)
156+
modelRespC, err := langModel.ChatStream(ctx, chatParams)
157157
if err != nil {
158158
r.logger.Error(
159159
"Lang model failed to create streaming chat request",

0 commit comments

Comments
 (0)