Repository navigation
AI functions: send X-ClickHouse-AI-Function header from OpenAI provider - #110449
Conversation
|
Workflow [PR], commit [b9da01b] Summary: ✅
AI ReviewSummaryThe PR adds Final VerdictStatus: ✅ Approve |
c146c9d to
6f61d3e
Compare
|
The failing test is fixed on master, doing a rebase on fresh master |
4bd14cd to
971c5d3
Compare
|
Preview deployment for your docs. Learn more about Mintlify Previews.
|
733564b to
9c1cd8c
Compare
|
|
9c1cd8c to
0dff332
Compare
|
Failures are due to ASAN run hitting memory limit, tracked by #111304 |
0dff332 to
8535975
Compare
Tag every OpenAI-format request with the SQL name of the calling AI function so an upstream endpoint can identify it. Header only; other providers ignore the new AIRequest/AIEmbeddingRequest field. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
The AI functions already expose their SQL name via IFunction::getName. Use it for the X-ClickHouse-AI-Function header and drop the duplicate functionName virtual and its four overrides. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Both request construction sites populate function_name via getName, so drop the empty check and assert the invariant in the provider. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Note in the docs that requiring `model` as a positional argument enforces reproducible embeddings, and trim redundant comments in aiEmbed.cpp. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
aiEmbed now takes model as a required positional argument, so the header test must pass it explicitly like every other aiEmbed call. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
8535975 to
b9da01b
Compare
|
Investigating CI failures, filed: #112203 |
LLVM Coverage Report
Changed lines: Changed C/C++ lines covered: 41/42 (97.62%) · Uncovered code |
… header from OpenAI provider
Backport #110449 to 26.7: AI functions: send X-ClickHouse-AI-Function header from OpenAI provider
… header from OpenAI provider
Cherry pick #110449 to 26.5: AI functions: send X-ClickHouse-AI-Function header from OpenAI provider
… header from OpenAI provider
Backport #110449 to 26.5: AI functions: send X-ClickHouse-AI-Function header from OpenAI provider
Backport #110449 to 26.6: AI functions: send X-ClickHouse-AI-Function header from OpenAI provider
Tag every OpenAI-format request with the SQL name of the calling AI function so an upstream endpoint can identify it. Header only; other providers ignore the new AIRequest/AIEmbeddingRequest field.
With the change, the outbound POST gains one extra header line. For an aiGenerate call against a keyed collection, the request headers look like:
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Tag OpenAI-format HTTP requests with the SQL name of the calling AI function for upstream endpoint identification.
Version info
26.8.1.312(included in26.8and later)26.7.2.38,26.6.2.139,26.5.6.101