Skip to content

Commit 1e42c86

Browse files
committed
docs(ai-cache): mark build_deny_response usage as a follow-up rename
1 parent 57687ca commit 1e42c86

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

apisix/plugins/ai-cache.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,9 @@ function _M.access(conf, ctx)
125125
else
126126
core.response.set_header("Content-Type", "application/json")
127127
end
128+
-- TODO: rename build_deny_response to build_response_from_text in a
129+
-- follow-up. We use it here to wrap cached text in the protocol's
130+
-- response shape, not for policy denial.
128131
return 200, proto.build_deny_response({
129132
stream = is_stream,
130133
text = cached_text,

0 commit comments

Comments
 (0)