89 lines
2.5 KiB
TypeScript
89 lines
2.5 KiB
TypeScript
import { LLM } from "@/types"
|
|
|
|
const PERPLEXITY_PLATORM_LINK =
|
|
"https://docs.perplexity.ai/docs/getting-started"
|
|
|
|
// Perplexity Models (UPDATED 2/25/24) -----------------------------
|
|
// Model Deprecation Notice
|
|
// Please note that on March 15, the pplx-70b-chat, pplx-70b-online, llama-2-70b-chat, and codellama-34b-instruct models will no longer be available through the Perplexity API.
|
|
|
|
// Mixtral 8x7B Instruct (UPDATED 1/31/24)
|
|
const MIXTRAL_8X7B_INSTRUCT: LLM = {
|
|
modelId: "mixtral-8x7b-instruct",
|
|
modelName: "Mixtral 8x7B Instruct",
|
|
provider: "perplexity",
|
|
hostedId: "mixtral-8x7b-instruct",
|
|
platformLink: PERPLEXITY_PLATORM_LINK,
|
|
imageInput: false
|
|
}
|
|
|
|
// Mistral 7B Instruct (UPDATED 1/31/24)
|
|
const MISTRAL_7B_INSTRUCT: LLM = {
|
|
modelId: "mistral-7b-instruct",
|
|
modelName: "Mistral 7B Instruct",
|
|
provider: "perplexity",
|
|
hostedId: "mistral-7b-instruct",
|
|
platformLink: PERPLEXITY_PLATORM_LINK,
|
|
imageInput: false
|
|
}
|
|
|
|
// CodeLlama 70B Instruct (UPDATED 1/31/24)
|
|
const CODELLAMA_70B_INSTRUCT: LLM = {
|
|
modelId: "codellama-70b-instruct",
|
|
modelName: "CodeLlama 70B Instruct",
|
|
provider: "perplexity",
|
|
hostedId: "codellama-70b-instruct",
|
|
platformLink: PERPLEXITY_PLATORM_LINK,
|
|
imageInput: false
|
|
}
|
|
|
|
// Sonar Small Chat (UPDATED 2/25/24)
|
|
const PERPLEXITY_SONAR_SMALL_CHAT_7B: LLM = {
|
|
modelId: "sonar-small-chat",
|
|
modelName: "Sonar Small Chat",
|
|
provider: "perplexity",
|
|
hostedId: "sonar-small-chat",
|
|
platformLink: PERPLEXITY_PLATORM_LINK,
|
|
imageInput: false
|
|
}
|
|
|
|
// Sonar Small Online (UPDATED 2/25/24)
|
|
const PERPLEXITY_SONAR_SMALL_ONLINE_7B: LLM = {
|
|
modelId: "sonar-small-online",
|
|
modelName: "Sonar Small Online",
|
|
provider: "perplexity",
|
|
hostedId: "sonar-small-online",
|
|
platformLink: PERPLEXITY_PLATORM_LINK,
|
|
imageInput: false
|
|
}
|
|
|
|
// Sonar Medium Chat (UPDATED 2/25/24)
|
|
const PERPLEXITY_SONAR_MEDIUM_CHAT_8x7B: LLM = {
|
|
modelId: "sonar-medium-chat",
|
|
modelName: "Sonar Medium Chat",
|
|
provider: "perplexity",
|
|
hostedId: "sonar-medium-chat",
|
|
platformLink: PERPLEXITY_PLATORM_LINK,
|
|
imageInput: false
|
|
}
|
|
|
|
// Sonar Medium Online (UPDATED 2/25/24)
|
|
const PERPLEXITY_SONAR_MEDIUM_ONLINE_8x7B: LLM = {
|
|
modelId: "sonar-medium-online",
|
|
modelName: "Sonar Medium Online",
|
|
provider: "perplexity",
|
|
hostedId: "sonar-medium-online",
|
|
platformLink: PERPLEXITY_PLATORM_LINK,
|
|
imageInput: false
|
|
}
|
|
|
|
export const PERPLEXITY_LLM_LIST: LLM[] = [
|
|
MIXTRAL_8X7B_INSTRUCT,
|
|
MISTRAL_7B_INSTRUCT,
|
|
CODELLAMA_70B_INSTRUCT,
|
|
PERPLEXITY_SONAR_SMALL_CHAT_7B,
|
|
PERPLEXITY_SONAR_SMALL_ONLINE_7B,
|
|
PERPLEXITY_SONAR_MEDIUM_CHAT_8x7B,
|
|
PERPLEXITY_SONAR_MEDIUM_ONLINE_8x7B
|
|
]
|