fix: 🐛 gpt-4-32k in CHAT_MODELS

This commit is contained in:
Nate Sesti 2023-09-11 13:00:13 -07:00
parent a6d21f979f
commit b0445cd5fc
2 changed files with 16 additions and 2 deletions

View file

@ -6,7 +6,13 @@ import openai
from ...core.main import ChatMessage
from ..llm import LLM
CHAT_MODELS = {"gpt-3.5-turbo", "gpt-3.5-turbo-16k", "gpt-4", "gpt-3.5-turbo-0613"}
CHAT_MODELS = {
"gpt-3.5-turbo",
"gpt-3.5-turbo-16k",
"gpt-4",
"gpt-3.5-turbo-0613",
"gpt-4-32k",
}
MAX_TOKENS_FOR_MODEL = {
"gpt-3.5-turbo": 4096,
"gpt-3.5-turbo-0613": 4096,

View file

@ -63,10 +63,18 @@ const MODEL_INFO: { title: string; class: string; args: any }[] = [
title: "HuggingFace Inference API",
class: "HuggingFaceInferenceAPI",
args: {
endpoint_url: "<INFERENCE_API_ENDPOINT_URL>",
endpoint_url: "<INFERENCE_API_ENDPOINT_URL>",
hf_token: "<HUGGING_FACE_TOKEN>",
},
},
{
title: "LM Studio",
class: "OpenAI",
args: {
api_base: "http://localhost:1234",
model: "codellama",
},
},
{
title: "Other OpenAI-compatible API",
class: "GGML",