Reorganize LanguageModelAuthConfig

Richard Feldman created

Change summary

crates/extension/src/extension_manifest.rs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

Detailed changes

crates/extension/src/extension_manifest.rs 🔗

@@ -328,11 +328,11 @@ pub struct LanguageModelManifestEntry {
 /// Authentication configuration for a language model provider.
 #[derive(Clone, PartialEq, Eq, Debug, Deserialize, Serialize)]
 pub struct LanguageModelAuthConfig {
+    /// Human-readable name for the credential shown in the UI input field (e.g., "API Key", "Access Token").
+    pub credential_label: Option<String>,
     /// Environment variable name for the API key (if env var auth supported).
     #[serde(default)]
     pub env_var: Option<String>,
-    /// Human-readable name for the credential shown in the UI input field (e.g., "API Key", "Access Token").
-    pub credential_label: Option<String>,
     /// OAuth configuration for web-based authentication flows.
     #[serde(default)]
     pub oauth: Option<OAuthConfig>,