refactor(models): unify preset names

This commit is contained in:
Xubin Ren committed 2026-08-16 11:50:56 +08:00
1 parent 8dc08853e4
commit 3dc38f6396
37 files changed
+239 -209

No files matched your search

+2 -4
View File
@@ -439,7 +439,7 @@ describe("webui API helpers", () => {
it("serializes model configuration creation", async () => {
await createModelConfiguration(mutationTransport, {
label: "Fast writing",
name: "Fast writing",
provider: "openai",
model: "openai/gpt-4.1-mini",
maxTokens: 4096,
@@ -451,7 +451,7 @@ describe("webui API helpers", () => {
expect(requestMutation).toHaveBeenCalledWith(
"settings.model_configuration.create",
{
label: "Fast writing",
name: "Fast writing",
provider: "openai",
model: "openai/gpt-4.1-mini",
max_tokens: 4096,
@@ -466,7 +466,6 @@ describe("webui API helpers", () => {
it("serializes model configuration updates", async () => {
await updateModelConfiguration(mutationTransport, {
name: "codex",
label: "Codex",
provider: "openai_codex",
model: "openai-codex/gpt-5.5",
maxTokens: 8192,
@@ -479,7 +478,6 @@ describe("webui API helpers", () => {
"settings.model_configuration.update",
{
name: "codex",
label: "Codex",
provider: "openai_codex",
model: "openai-codex/gpt-5.5",
max_tokens: 8192,