Skip to content

Commit e6b6bc1

Browse files
committed
feat(config): add RightCode provider and rename Z.ai GLM
- Add RightCode provider preset with GPT-5.2 models - Rename "Z.ai GLM" to "Zhipu GLM en" for clarity
1 parent b1f7ff4 commit e6b6bc1

File tree

1 file changed

+29
-2
lines changed

1 file changed

+29
-2
lines changed

src/config/opencodeProviderPresets.ts

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,12 +103,12 @@ export const opencodeProviderPresets: OpenCodeProviderPreset[] = [
103103
},
104104
},
105105
{
106-
name: "Z.ai GLM",
106+
name: "Zhipu GLM en",
107107
websiteUrl: "https://z.ai",
108108
apiKeyUrl: "https://z.ai/subscribe?ic=8JVLJQFSKB",
109109
settingsConfig: {
110110
npm: "@ai-sdk/openai-compatible",
111-
name: "Z.ai GLM",
111+
name: "Zhipu GLM en",
112112
options: {
113113
baseURL: "https://api.z.ai/v1",
114114
apiKey: "",
@@ -646,6 +646,33 @@ export const opencodeProviderPresets: OpenCodeProviderPreset[] = [
646646
},
647647
},
648648
},
649+
{
650+
name: "RightCode",
651+
websiteUrl: "https://www.right.codes",
652+
apiKeyUrl: "https://www.right.codes/register?aff=0bdf9bfa",
653+
settingsConfig: {
654+
npm: "@ai-sdk/openai",
655+
name: "RightCode",
656+
options: {
657+
baseURL: "https://right.codes/codex/v1",
658+
apiKey: "",
659+
},
660+
models: {
661+
"gpt-5.2": { name: "GPT-5.2" },
662+
"gpt-5.2-codex": { name: "GPT-5.2 Codex" },
663+
},
664+
},
665+
category: "third_party",
666+
icon: "rc",
667+
iconColor: "#E96B2C",
668+
templateValues: {
669+
apiKey: {
670+
label: "API Key",
671+
placeholder: "",
672+
editorValue: "",
673+
},
674+
},
675+
},
649676

650677
// ========== 自定义模板 ==========
651678
{

0 commit comments

Comments
 (0)