Files
AFFiNE/packages/backend/native/src/runtime/backend_runtime/byok/mod.rs
luulam 177150086f feat(copilot): managed profile testing and openaiCompatible provider support
- add native openaiCompatible provider type with flat baseUrl/apiKey/dialect
  config fields and declared per-model capabilities
- add admin-only probeManagedCopilotProfile GraphQL mutation that dispatches
  real probe requests against server-managed copilot profiles, reusing the
  BYOK probe engine with an AllowPrivate egress policy for self-hosted
  endpoints (Vertex profiles rejected; use workspace BYOK instead)
- expose providers.profiles app config descriptor to the admin console
- add 'AI Providers' settings group with JSON editor and per-profile Test
  action that probes declared capabilities and reports verified/failed
  status per model and operation
2026-08-26 09:51:52 +07:00

11 lines
426 B
Rust

mod local;
mod probe;
mod profile;
pub(super) use local::{LocalLeasePayload, create as create_local_lease};
pub(in crate::runtime::backend_runtime) use probe::execute_probe_with_policy;
pub(super) use profile::{create, delete, list, probe_draft, probe_profile, reorder, replace, rotate};
use profile::{envelope_key, require_text};
use super::{RuntimeError, RuntimeResult, backend_provider, executable_protocol, token_hash};