Dashboard › opencode › Distillation
68071364-3100-4f8c-83bd-075817e7ec0d["lore_tm_v1_UKzImb47uc0RiGm7EIyIegdcMqavtI4guTGx7wKheuI","lore_tm_v1_iqYjhtsbWSd6MHgFX9QLRytKhUGGJXIApZi0nzv5IWs","lore_tm_v1_U83xS1k_Iw-AAZUU50fNfZe1_LFkkKynmrH4GMk5hlA"]
/home/byk/Code/opencode-lore-v2/packages/gateway/src/translate/bedrock-runtime.ts:117-151 defines BEDROCK_STRIPPED_HEADERS as connection, cookie, cookie2, host, keep-alive, proxy-authenticate, proxy-authorization, proxy-connection, te, trailer, transfer-encoding, and upgrade; bedrockRuntimeHeaders(headers) additionally removes headers nominated by Connection and all headers whose normalized names start with x-lore-, while preserving other headers./home/byk/Code/opencode-lore-v2/packages/gateway/src/translate/bedrock-runtime.ts:165-224 has proxyBedrockRuntimeRequest(req, region, deps): invalid paths return JSON 400 with error type invalid_request_error and message Bedrock Runtime proxy: path does not match /v1/model/<modelId>/<verb>; valid requests target ${bedrockRuntimeUrl(region)}/model/${modelId}/${verb}, buffer the body via readBedrockRuntimeRequestBody, call deps.upstreamFetch ?? upstreamFetch through responseAgainstAbort, and return upstream body/status/statusText/headers via wrapBodyWithCleanup.proxyBedrockRuntimeRequest disposes its foreground abort scope when an exception occurs and has dedicated handling for BedrockRuntimeRequestTooLargeError.2 matches in /home/byk/Code/opencode-lore-v2/packages/core/src/credential-headers.ts: line 4 defines GATEWAY_AUTH_HEADER = "x-lore-gateway-token", and line 46 includes GATEWAY_AUTH_HEADER in an exported collection.2 matches in /home/byk/Code/opencode-lore-v2/packages/opencode/test/server-runtime.test.ts: line 133 configures gatewayHeaders: { "x-lore-access": "gateway-token" }, and line 145 expects "x-lore-access": "gateway-token".