Skip to content

Conversation

@fffonion
Copy link
Contributor

@fffonion fffonion commented Oct 28, 2025

Summary

Checklist

  • The Pull Request has tests
  • A changelog file has been created under changelog/unreleased/kong or skip-changelog label added on PR if changelog is unnecessary. README.md
  • There is a user-facing docs PR against https://github.com/Kong/developer.konghq.com - PUT DOCS PR HERE

Issue reference

AG-532

oowl and others added 4 commits October 28, 2025 14:27
…e format (#12451)

Added support for Bedrock agent SDK, including converse, converse-stream, retrieveAndGenerate, and retrieveAndGenerate-stream.

AG-279
Increase ai prompt message max length from 500 to 100000.

AG-287

Signed-off-by: hackerchai <[email protected]>
…est_body_table_inuse for fixing user defiend fields missing

- Add should_set_body parameter to control request body setting
- Update prompt decorator to use new parameter

test(ai-prompt-decorator): add test for preserving model and temperature fields

- Add test case for full chat request
- Verify model and temperature preservation

test(ai-prompt-decorator): add integration test for preserving model and temperature fields

- Add test case for openai_full_chat configuration
- Verify model, temperature and max_tokens preservation
- Check message decoration and context setting

doc(changelog): Add fix_ai_prompt_decorator_missing_fields changlog

doc(changelog): use correct type of changelog & polish message

Signed-off-by: Eason Chai <[email protected]>
fffonion and others added 13 commits October 30, 2025 17:11
This implementation drops the usage of splitn.
Note that it assumes that each SSE chunk ends with `\n\n` which is
expected (See #14499). To satify this
requirement, I also update some tests.

AG-310
From #14500

AG-309

Signed-off-by: spacewander <[email protected]>
Signed-off-by: Zexuan Luo <[email protected]>
Co-authored-by: spacewander <[email protected]>
Co-authored-by: Zexuan Luo <[email protected]>
Co-authored-by: Jun Ouyang <[email protected]>
Previously, stale SSE events was not dropped, which
causes repeated body (like `The answer to 1 + 1 is 2.The answer to 1 + 1 is 2.`)
for observability.
Signed-off-by: Zexuan Luo <[email protected]>
fffonion and others added 29 commits October 30, 2025 17:11
…ent was truncated (#13452)

The previous fix (#13315) missed a branch.
This is caught by a more careful fuzzing.

Signed-off-by: Zexuan Luo <[email protected]>

AG-385
…re events (#13588)

AG-401

This affects Gemini streaming chunk parsing and OpenAI's /v1/files
route.

When using iterator in the `for` loop, the loop is terminated when the
first returned value is nil, which causes the missing state update.

Show by the code below:
```
local function itertool(x)
  local i = 0
  return function()
    i = i + 1
    if i <= #x then
      return x[i]
    end
  end
end

local function main()
  local x = {1, nil, 3, 4, 5}
  for v in itertool(x) do
    print(v)
  end
end

local function better_main()
  local x = {1, nil, 3, 4, 5}
  local iter = itertool(x)
  local eos = 5
  local count = 0
  while true do
    count = count + 1
    if count > eos then
      break
    end
    local v = iter()
    if v ~= nil then
      print(v)
    end
  end
end

main()
print("Fix it")
better_main()
```

This PR also
1. Fixes an incorrect delimiter skipping
2. Supports using `\r` as line separator

---------

Signed-off-by: Zexuan Luo <[email protected]>
…om Gemini provider in some situations

Signed-off-by: Zexuan Luo <[email protected]>
…gw-only] (#14137)

"Floor" is set and then prompts must abide by specific rulesets (e.g. hate, violence) else it will be blocked.

Kong was not correctly handling a "bad" or "blocked" response from GCP. This PR makes that work.

With this patch, the user no longer gets 500 'an error occured' and instead gets 400:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants