Slightly better typings for ModelProviders

Still not great because the `any`s loosen some call sites up more than I'd like, but better than the broken types before.
This commit is contained in:
Kyle Corbitt
2023-07-21 06:50:05 -07:00
parent a5d972005e
commit 7e1fbb3767
6 changed files with 12 additions and 16 deletions

View File

@@ -1,6 +1,8 @@
import { type JSONSchema4 } from "json-schema";
import { type JsonValue } from "type-fest";
export type SupportedProvider = "openai/ChatCompletion" | "replicate/llama2";
type ModelProviderModel = {
name?: string;
learnMore?: string;