Skip to content

Commit

Permalink
Merge pull request #1929 from suhipek/main
Browse files Browse the repository at this point in the history
add new models
  • Loading branch information
Yidadaa authored Jun 14, 2023
2 parents 426ce7f + d2ae740 commit 2593de5
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion app/store/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ export const ALL_MODELS = [
name: "gpt-4-0314",
available: ENABLE_GPT4,
},
{
name: "gpt-4-0613",
available: ENABLE_GPT4,
},
{
name: "gpt-4-32k",
available: ENABLE_GPT4,
Expand All @@ -68,6 +72,10 @@ export const ALL_MODELS = [
name: "gpt-4-32k-0314",
available: ENABLE_GPT4,
},
{
name: "gpt-4-32k-0613",
available: ENABLE_GPT4,
},
{
name: "gpt-3.5-turbo",
available: true,
Expand All @@ -76,6 +84,14 @@ export const ALL_MODELS = [
name: "gpt-3.5-turbo-0301",
available: true,
},
{
name: "gpt-3.5-turbo-0613",
available: true,
},
{
name: "gpt-3.5-turbo-16k",
available: true,
},
{
name: "qwen-v1", // 通义千问
available: false,
Expand Down Expand Up @@ -116,7 +132,7 @@ export function limitNumber(
export function limitModel(name: string) {
return ALL_MODELS.some((m) => m.name === name && m.available)
? name
: ALL_MODELS[4].name;
: "gpt-3.5-turbo";
}

export const ModalConfigValidator = {
Expand Down

0 comments on commit 2593de5

Please sign in to comment.