execute

open override fun execute(params: IPluginServletActionParams): IPluginServletActionRetVal

Processes an incoming proxy request.

Expected parameters / headers:

  • Query/form parameter endpoint — one of /v1/chat/completions or /completion

  • HTTP header AuthorizationBasic base64(username:password)

  • HTTP header X-Request-Body — the JSON body to forward (Base64-encoded)

  • Or form parameter body — the JSON body to forward (plain text)

Caller IP is extracted from X-Forwarded-For or X-Real-IP headers, falling back to Remote-Addr.