Skip to content

Conversation

ddling
Copy link
Contributor

@ddling ddling commented Jul 18, 2025

2025-07-18.10.16.07.mov

Huawei Cloud MaaS:

https://console.huaweicloud.com/modelarts/?agencyId=5e8a9ac3d8b1455caa394e38e9225136&region=cn-southwest-2&locale=en-us#/model-studio/square

Huawei Cloud MaaS Open Source Models

截屏2025-07-18 10 30 59

Related Request

Discussions: #4379

Related Issue

Issue: #XXXX

Description

Test Procedure

Type of Change

  • 🐛 Bug fix (non-breaking change which fixes an issue)
  • ✨ New feature (non-breaking change which adds functionality)
  • 💥 Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • ♻️ Refactor Changes
  • 💅 Cosmetic Changes
  • 📚 Documentation update
  • 🏃 Workflow Changes

Pre-flight Checklist

  • Changes are limited to a single feature, bugfix or chore (split larger changes into separate PRs)
  • Tests are passing (npm test) and code is formatted and linted (npm run format && npm run lint)
  • I have created a changeset using npm run changeset (required for user-facing changes)
  • I have reviewed contributor guidelines

Screenshots

Additional Notes


Important

Add Huawei Cloud MaaS provider integration, including API handling, configuration, and UI support.

  • Behavior:
    • Adds HuaweiCloudMaaSHandler in src/api/providers/huawei-cloud-maas.ts to handle API interactions with Huawei Cloud MaaS.
    • Updates createHandlerForProvider() in src/api/index.ts to include Huawei Cloud MaaS.
    • Adds Huawei Cloud MaaS to ApiProvider enum in proto/models.proto.
  • Configuration:
    • Adds huaweiCloudMaaSApiKey to ModelsApiConfiguration in proto/models.proto.
    • Updates state.ts, state-keys.ts, and state-migrations.ts to handle Huawei Cloud MaaS API key.
    • Updates api-configuration-conversion.ts to convert Huawei Cloud MaaS configurations.
  • UI:
    • Adds HuaweiCloudMaaSProvider component in webview-ui/src/components/settings/providers/HuaweiCloudMaaSProvider.tsx.
    • Updates ApiOptions.tsx to include Huawei Cloud MAAS in the provider dropdown.
    • Updates validate.ts to validate Huawei Cloud MAAS API key.

This description was created by Ellipsis for a2cce46. You can customize this summary. It will automatically update as commits are pushed.

Copy link

changeset-bot bot commented Jul 18, 2025

🦋 Changeset detected

Latest commit: ba6d036

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
claude-dev Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@celestial-vault
Copy link
Contributor

@ddling Can you change this to match the plan/act separate settings format?

@celestial-vault
Copy link
Contributor

Cline should be able to help you with this pretty easily.

@ddling
Copy link
Contributor Author

ddling commented Jul 21, 2025

@ddling Can you change this to match the plan/act separate settings format?

OK, I'll modify it today.

@@ -28,6 +28,7 @@ export type SecretKey =
| "sapAiCoreClientId"
| "sapAiCoreClientSecret"
| "groqApiKey"
| "huaweiCloudMaaSApiKey"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make sure you add a modelId field specifically for 华为 as well

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the correction, I'll edit it.

@ddling ddling closed this by deleting the head repository Jul 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants