proxy

package
v1.20.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 27, 2026 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CodebuddyCapabilities added in v1.20.0

func CodebuddyCapabilities(model modelListModel) any

func SetJSONLLogWriter

func SetJSONLLogWriter(w io.Writer)

SetJSONLLogWriter sets the destination writer for JSONL request logs. It must be called before any handler runs (typically once at startup in main). Pass nil to fall back to stdout.

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler(cfg *config.Config, client *http.Client, source, target protocol.Protocol) *Handler

func (*Handler) ServeHTTP

func (h *Handler) ServeHTTP(c *gin.Context)

func (*Handler) ServeResponsesWebSocket

func (h *Handler) ServeResponsesWebSocket(c *gin.Context)

ServeResponsesWebSocket upgrades GET /v1/responses to the Responses API WebSocket transport. Each connection owns its response-ID state so later response.create frames can use previous_response_id with any target protocol, not only an OpenAI Responses upstream.

type ModelListHandler

type ModelListHandler struct {
	// contains filtered or unexported fields
}

func NewModelListHandler

func NewModelListHandler(cfg *config.Config, client *http.Client, target protocol.Protocol) *ModelListHandler

func NewModelListHandlerForSource

func NewModelListHandlerForSource(cfg *config.Config, client *http.Client, sourceName string, target protocol.Protocol) *ModelListHandler

func (*ModelListHandler) ServeHTTP

func (h *ModelListHandler) ServeHTTP(c *gin.Context)

Source Files

  • aggregate.go
  • copilot.go
  • handler.go
  • idle_timeout_body.go
  • model_list.go
  • request_log.go
  • responses_websocket.go

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL