fix(browser): register AI snapshot refs (#1282)

thanks @John-Rood

Co-authored-by: John Rood <62669593+John-Rood@users.noreply.github.com>
This commit is contained in:
Peter SteinbergerandJohn Rood committed 2026-01-20 14:14:36 +00:00
1 parent 710c681283
commit da4b124480
7 files changed
+88 -47

No files matched your search

+4
View File
@@ -1,5 +1,9 @@
import type { Api, Model } from "@mariozechner/pi-ai";
function isOpenAICompletionsModel(model: Model<Api>): model is Model<"openai-completions"> {
return model.api === "openai-completions";
}
export function normalizeModelCompat(model: Model<Api>): Model<Api> {
const isOpenAICompletionsModel = (
candidate: Model<Api>,