Skip to content

Commit

Permalink
removed deprecated Perplexity AI models
Browse files Browse the repository at this point in the history
  • Loading branch information
Clay-Ferguson committed Dec 21, 2024
1 parent 297c824 commit effe423
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 28 deletions.
10 changes: 0 additions & 10 deletions QuantaAI/quanta_ai.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@
OPENAI_MODEL_COMPLETION_O1_PREVIEW = "o1-preview"
OPENAI_MODEL_COMPLETION_O1_MINI = "o1-mini"
PPLX_MODEL_COMPLETION_ONLINE = "llama-3.1-sonar-huge-128k-online"
PPLX_MODEL_COMPLETION_LLAMA3 = "llama-3.1-70b-instruct"
PPLX_MODEL_COMPLETION_CHAT = "llama-3.1-sonar-large-128k-chat"
GEMINI_MODEL_COMPLETION_CHAT = "gemini-1.5-pro"
GEMINI_FLASH_MODEL_COMPLETION_CHAT = "gemini-1.5-flash"
XAI_MODEL_COMPLETION_CHAT = "grok-beta"
Expand Down Expand Up @@ -273,14 +271,6 @@ def calculate_cost(input_tokens, output_tokens, model) -> float:
input_ppm = 3.0
output_ppm = 15.0

elif model == PPLX_MODEL_COMPLETION_CHAT:
input_ppm = 1.0
output_ppm = 1.0

elif model == PPLX_MODEL_COMPLETION_LLAMA3:
input_ppm = 1.0
output_ppm = 1.0

elif model == PPLX_MODEL_COMPLETION_ONLINE:
input_ppm = 1.0
output_ppm = 1.0
Expand Down
2 changes: 0 additions & 2 deletions src/main/java/quanta/model/client/AIModel.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,8 @@ public enum AIModel {
OPENAI_O1_PREVIEW("openAi_o1Preview", "openai", "o1-preview", "OpenAI: ChatGPT o1-preview", "O1P", true, 128_000), //
OPENAI_O1_MINI("openAi_o1Mini", "openai", "o1-mini", "OpenAI: ChatGPT o1-mini", "O1M", true, 128_000), //

PPLX_CHAT("pplxAi", "perplexity", "llama-3.1-sonar-large-128k-chat", "Perplexity: Basic", "PPB", true, 127_000), //
PPLX_ONLINE("pplxAi_online", "perplexity", "llama-3.1-sonar-huge-128k-online", "Perplexity: Recent News Aware",
"PPN", false, 127_000), //
PPLX_LLAMA3("llama3", "perplexity", "llama-3.1-70b-instruct", "Meta: Llama 3", "PPL", true, 131_000), //

ANTH("anthAi", "anthropic", "claude-3-opus-20240229", "Anthropic: Claude 3 Opus", "ACL", true, 200_000), //

Expand Down
14 changes: 0 additions & 14 deletions src/main/resources/public/src/AIUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,6 @@ export class AIUtil {
});
}

if (S.quanta.config.usePplxAi) {
this.aiServices.push(//
{
name: J.AIModel.PPLX_LLAMA3,
description: "Meta: Llama 3",
longDescription: "Meta's Open Source Llama 3 (131K context, max $1/megatoken)"
});
}

if (S.quanta.config.useAnthAi) {
this.aiServices.push(//
{
Expand All @@ -74,11 +65,6 @@ export class AIUtil {

if (S.quanta.config.usePplxAi) {
this.aiServices.push(//
{
name: J.AIModel.PPLX_CHAT,
description: "Perplexity: Basic",
longDescription: "Perplexity's best high-end powerful general-purpose AI (127K context, max $1/megatoken)"
},
{
name: J.AIModel.PPLX_ONLINE,
description: "Perplexity: Recent News Aware",
Expand Down
2 changes: 0 additions & 2 deletions src/main/resources/public/src/JavaIntf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1101,9 +1101,7 @@ export const enum AIModel {
OPENAI_MINI = "openAiMini",
OPENAI_O1_PREVIEW = "openAi_o1Preview",
OPENAI_O1_MINI = "openAi_o1Mini",
PPLX_CHAT = "pplxAi",
PPLX_ONLINE = "pplxAi_online",
PPLX_LLAMA3 = "llama3",
ANTH = "anthAi",
ANTH_SONNET = "anthAi_sonnet",
GEMINI = "geminiAi",
Expand Down

0 comments on commit effe423

Please sign in to comment.