Skip to content

Commit 8481ad5

Browse files
committed
fix(coderd): chat: do not pass tools to model for generating chat title
1 parent 05fa48d commit 8481ad5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

coderd/chat.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ func (api *API) postChatMessages(w http.ResponseWriter, r *http.Request) {
207207
- It should be maximum of 40 characters.
208208
- Do not use quotes, colons, special characters, or emojis.`,
209209
Messages: messages,
210-
Tools: tools,
210+
Tools: []aisdk.Tool{}, // This initial stream doesn't use tools.
211211
})
212212
if err != nil {
213213
httpapi.Write(ctx, w, http.StatusInternalServerError, codersdk.Response{

0 commit comments

Comments
 (0)