Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: supabase/edge-runtime
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: f6b79fb
Choose a base ref
...
head repository: supabase/edge-runtime
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 9b9e554
Choose a head ref
  • 3 commits
  • 4 files changed
  • 2 contributors

Commits on Nov 13, 2026

  1. feat(ai): warn once per worker when built-in ONNX inference is used

    Built-in ONNX inference is being considered for deprecation, so users should learn that from their function logs. Warn once per worker per entry point, for both Supabase.ai.Session("gte-small") and onnxruntime InferenceSession.create, rather than on every invocation.
    
    - Add warnOnnxUsage in ext/ai/js/onnxruntime/onnx.js, which de-duplicates by entry point and logs via console.warn.
    - Call it from the gte-small branch of the Session constructor in ext/ai/js/ai.js and from InferenceSession.fromBuffer.
    - Add integration tests that capture worker log events and assert exactly one warning per entry point.
    - Add a second gte-small session to the supabase-ai test case to check that repeated sessions in one worker do not repeat the warning.
    johnstonmatt committed Nov 13, 2026
    Configuration menu
    Copy the full SHA
    e389336 View commit details
    Browse the repository at this point in the history
  2. fix(ai): warn on ONNX model runs, not session creation

    The ingress main worker creates a gte-small session at boot to warm the
    model cache, which would have logged the deprecation warning on every
    instance. Warning in Session.run and InferenceSession.run counts actual
    model calls instead.
    johnstonmatt committed Nov 13, 2026
    Configuration menu
    Copy the full SHA
    f389024 View commit details
    Browse the repository at this point in the history
  3. Merge pull request #769 from supabase/FUNC-1090/log-onnx-model-calls-…

    …to-measure-feature-usage
    
    feat(ai): warn once per worker when built-in ONNX inference is used
    johnstonmatt authored Nov 13, 2026
    Configuration menu
    Copy the full SHA
    9b9e554 View commit details
    Browse the repository at this point in the history
Loading