Skip to content

Commit 21d2cbb

Browse files
committed
fix(coderd): chat: do not pass tools to model for generating chat title
1 parent 00cab78 commit 21d2cbb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

coderd/chat.go

Lines changed: 1 addition & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy