Skip to content

Commit

Permalink
remove some headers
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianliechti committed May 7, 2024
1 parent fafc568 commit 398cc57
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
3 changes: 0 additions & 3 deletions server/oai/server_chat_completion.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,6 @@ func (s *Server) handleChatCompletion(w http.ResponseWriter, r *http.Request) {

if req.Stream {
w.Header().Set("Content-Type", "text/event-stream")
w.Header().Set("Cache-Control", "no-cache")
w.Header().Set("Connection", "keep-alive")
w.Header().Set("Access-Control-Allow-Origin", "*")

done := make(chan error)
stream := make(chan provider.Completion)
Expand Down
3 changes: 0 additions & 3 deletions server/ollama/server_chat.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,6 @@ func (s *Server) handleChat(w http.ResponseWriter, r *http.Request) {

if *req.Stream {
w.Header().Set("Content-Type", "application/x-ndjson")
w.Header().Set("Cache-Control", "no-cache")
w.Header().Set("Connection", "keep-alive")
w.Header().Set("Access-Control-Allow-Origin", "*")

done := make(chan error)
stream := make(chan provider.Completion)
Expand Down

0 comments on commit 398cc57

Please sign in to comment.