feat: add native Scaleway Generative APIs provider - #3846
Draft
claudecodebyia wants to merge 1 commit into
Draft
Conversation
Co-Authored-By: ForgeCode <noreply@forgecode.dev>
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds first-class support for Scaleway Generative APIs as an OpenAI-compatible ForgeCode provider.
scalewayas a built-in provider authenticated bySCW_SECRET_KEYSCW_PROJECT_IDglm-5.2with its 256k context window, reasoning, function calling, and parallel tool calling capabilitiesMotivation
Scaleway follows the OpenAI Chat Completions contract, but two provider-specific details prevent a generic configuration from working reliably in ForgeCode:
400 Bad RequestThis integration handles both details centrally so users can select Scaleway like any other native provider.
User impact
Users can now run:
forge provider login scaleway forge config set model scaleway glm-5.2They may leave
SCW_PROJECT_IDblank for the default project or provide a project ID when their IAM key has access to it.Validation
cargo test -p forge_domain provider --lib— 51 passedcargo test -p forge_app dto::openai::transformers --lib— 110 passedcargo test -p forge_repo provider::provider_repo --lib— 34 passedcargo test -p forge_repo test_enhance_error_scaleway_project_permissions --lib— passedcargo clippy -p forge_domain -p forge_app -p forge_repo --all-targets -- -D warnings— passedrustfmt --checkfor every changed Rust file — passedglm-5.2using the default project endpoint — returnedOKReferences