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:
1 parent
710c681283
commit
da4b124480
7 files changed
+88
-47
No files matched your search
@@ -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>,
|
||||
|
||||
Reference in new issue
Block a user