refactor: optimize React state updates and improve UI text clarity

- Use functional setState to ensure proper state updates in ProviderForm
- Improve Chinese UI text consistency in CodexConfigEditor:
  - Change "API 基础地址" to "API 请求地址" for clarity
  - Simplify "供应商官网" to "官网地址"
  - Update placeholder text for consistency
- Move requires_openai_auth to model_providers section in Codex config template
This commit is contained in:
Jason
2025-09-22 16:25:58 +08:00
parent 3e834e2c38
commit b17d915086
3 changed files with 14 additions and 14 deletions

View File

@@ -438,7 +438,7 @@ const CodexConfigEditor: React.FC<CodexConfigEditorProps> = ({
<div>
<label className="mb-1 block text-sm font-medium text-gray-900 dark:text-gray-100">
API *
API *
</label>
<input
@@ -455,7 +455,7 @@ const CodexConfigEditor: React.FC<CodexConfigEditorProps> = ({
<div>
<label className="mb-1 block text-sm font-medium text-gray-900 dark:text-gray-100">
</label>
<input
@@ -468,7 +468,7 @@ const CodexConfigEditor: React.FC<CodexConfigEditorProps> = ({
/>
<p className="mt-1 text-xs text-gray-500 dark:text-gray-400">
</p>
</div>