Update custom provider config: Change 'Base URL' to 'API Endpoint URL' in placeholder and label for clarity

This commit is contained in:
Beingpax 2025-07-23 09:54:40 +05:45
parent db9b0c067c
commit f27de6ab3a

View File

@ -250,14 +250,14 @@ struct APIKeyManagementView: View {
// Configuration Fields
VStack(alignment: .leading, spacing: 8) {
if !aiService.isAPIKeyValid {
TextField("Base URL (e.g., https://api.example.com/v1/chat/completions)", text: $aiService.customBaseURL)
TextField("API Endpoint URL (e.g., https://api.example.com/v1/chat/completions)", text: $aiService.customBaseURL)
.textFieldStyle(.roundedBorder)
TextField("Model Name (e.g., gpt-4o-mini, claude-3-5-sonnet-20240620)", text: $aiService.customModel)
.textFieldStyle(.roundedBorder)
} else {
VStack(alignment: .leading, spacing: 8) {
Text("Base URL")
Text("API Endpoint URL")
.font(.subheadline)
.foregroundColor(.secondary)
Text(aiService.customBaseURL)