Skip to content

Commit

Permalink
fix(api): also add query parameters to sessions API
Browse files Browse the repository at this point in the history
  • Loading branch information
philwinder committed Nov 20, 2024
1 parent e17b117 commit d467a21
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions api/pkg/server/session_handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,15 @@ func (s *HelixAPIServer) startChatSessionHandler(rw http.ResponseWriter, req *ht
AssistantID: startReq.AssistantID,
RAGSourceID: startReq.RAGSourceID,
Provider: startReq.Provider,
QueryParams: func() map[string]string {
params := make(map[string]string)
for key, values := range req.URL.Query() {
if len(values) > 0 {
params[key] = values[0]
}
}
return params
}(),
}
)

Expand Down

0 comments on commit d467a21

Please sign in to comment.