summaryrefslogtreecommitdiff
path: root/extension/react-app/src/components/ModelSelect.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'extension/react-app/src/components/ModelSelect.tsx')
-rw-r--r--extension/react-app/src/components/ModelSelect.tsx74
1 files changed, 2 insertions, 72 deletions
diff --git a/extension/react-app/src/components/ModelSelect.tsx b/extension/react-app/src/components/ModelSelect.tsx
index cd27067f..faa64f69 100644
--- a/extension/react-app/src/components/ModelSelect.tsx
+++ b/extension/react-app/src/components/ModelSelect.tsx
@@ -16,22 +16,6 @@ import { useNavigate } from "react-router-dom";
const MODEL_INFO: { title: string; class: string; args: any }[] = [
{
- title: "OpenAI",
- class: "OpenAI",
- args: {
- model: "gpt-4",
- api_key: "",
- },
- },
- {
- title: "Anthropic",
- class: "AnthropicLLM",
- args: {
- model: "claude-2",
- api_key: "<ANTHROPIC_API_KEY>",
- },
- },
- {
title: "Ollama",
class: "Ollama",
args: {
@@ -39,64 +23,10 @@ const MODEL_INFO: { title: string; class: string; args: any }[] = [
},
},
{
- title: "TogetherAI",
- class: "TogetherLLM",
- args: {
- model: "togethercomputer/CodeLlama-13b-Instruct",
- api_key: "<TOGETHER_API_KEY>",
- },
- },
- {
- title: "Replicate",
- class: "ReplicateLLM",
- args: {
- model:
- "replicate/llama-2-70b-chat:58d078176e02c219e11eb4da5a02a7830a283b14cf8f94537af893ccff5ee781",
- api_key: "<REPLICATE_API_KEY>",
- },
- },
- {
title: "llama.cpp",
class: "LlamaCpp",
args: {},
- },
- {
- title: "HuggingFace Inference API",
- class: "HuggingFaceInferenceAPI",
- args: {
- endpoint_url: "<INFERENCE_API_ENDPOINT_URL>",
- hf_token: "<HUGGING_FACE_TOKEN>",
- },
- },
- {
- title: "Google PaLM API",
- class: "GooglePaLMAPI",
- args: {
- model: "chat-bison-001",
- api_key: "<MAKERSUITE_API_KEY>",
- },
- },
- {
- title: "LM Studio",
- class: "GGML",
- args: {
- server_url: "http://localhost:1234",
- },
- },
- {
- title: "Other OpenAI-compatible API",
- class: "GGML",
- args: {
- server_url: "<SERVER_URL>",
- },
- },
- {
- title: "GPT-4 limited free trial",
- class: "OpenAIFreeTrial",
- args: {
- model: "gpt-4",
- },
- },
+ }
];
const GridDiv = styled.div`
@@ -196,7 +126,7 @@ function ModelSelect(props: {}) {
idx: -1,
})}
>
- OpenAIFreeTrial - gpt-4
+ Ollama
</option>
)}
{defaultModel && (