mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-09-07 08:27:12 +00:00
13 lines
387 B
TypeScript
13 lines
387 B
TypeScript
import type { Model } from "@qltysh/fabro-api-client";
|
|
|
|
type ModelOfferingIdentity = Pick<Model, "provider" | "id">;
|
|
|
|
export function modelOfferingKey(model: ModelOfferingIdentity): string {
|
|
return `${model.provider}\u0000${model.id}`;
|
|
}
|
|
|
|
export function modelOfferingTestArgs(
|
|
model: ModelOfferingIdentity,
|
|
): [id: string, provider: string] {
|
|
return [model.id, model.provider];
|
|
}
|