feat: adapt cloudflare worker ai (#14732)

#### PR Dependency Tree


* **PR #14732** 👈

This tree was auto-generated by
[Charcoal](https://github.com/danerwilliams/charcoal)

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **New Features**
* Cloudflare Workers AI added as a Copilot provider (configurable in
admin settings).
  * Gemini 3.1 Flash Lite Preview model made available.

* **Behavior Changes**
* Reranking now uses a different default model identifier (affects
relevancy scores).

* **Tests**
* Rerank tests adjusted to focus on the updated model and expected
results.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
DarkSky
2026-03-27 02:15:49 +08:00
committed by GitHub
parent 5b05c5a1b2
commit a41c5e4366
18 changed files with 502 additions and 30 deletions
+1
View File
@@ -103,6 +103,7 @@ export type NativeLlmBackendConfig = {
request_layer?:
| 'anthropic'
| 'chat_completions'
| 'cloudflare_workers_ai'
| 'responses'
| 'vertex'
| 'vertex_anthropic'