fix(api): add POST for hybrid-search while keeping GET compatibility (#1727)
GET with a JSON body was non-standard and confused integrators. Register POST as the preferred method and keep GET for existing clients; update SDK, MCP server, and API docs accordingly. Refs: https://github.com/Tencent/WeKnora/issues/1727
This commit is contained in:
@@ -193,7 +193,7 @@ class WeKnoraClient:
|
||||
**config, # Include thresholds and match count
|
||||
}
|
||||
return self._request(
|
||||
"GET", f"/knowledge-bases/{kb_id}/hybrid-search", json=data
|
||||
"POST", f"/knowledge-bases/{kb_id}/hybrid-search", json=data
|
||||
)
|
||||
|
||||
# Knowledge Management - Methods for creating and managing knowledge entries
|
||||
|
||||
Reference in New Issue
Block a user