| | |
| | | } |
| | | |
| | | cfg.setName(trim(cfg.getName())); |
| | | cfg.setProviderType(trim(cfg.getProviderType())); |
| | | cfg.setProtocolType(trim(cfg.getProtocolType())); |
| | | cfg.setBaseUrl(trim(cfg.getBaseUrl())); |
| | | cfg.setEndpointPath(trim(cfg.getEndpointPath())); |
| | | cfg.setApiKey(trim(cfg.getApiKey())); |
| | | cfg.setAuthType(trim(cfg.getAuthType())); |
| | | cfg.setAuthHeaderName(trim(cfg.getAuthHeaderName())); |
| | | cfg.setModel(trim(cfg.getModel())); |
| | | cfg.setCapabilities(trim(cfg.getCapabilities())); |
| | | cfg.setRequestOptions(trim(cfg.getRequestOptions())); |
| | | cfg.setMemo(trim(cfg.getMemo())); |
| | | if (isBlank(cfg.getBaseUrl()) || isBlank(cfg.getApiKey()) || isBlank(cfg.getModel())) { |
| | | skipped++; |
| | |
| | | LinkedHashMap<String, Object> row = new LinkedHashMap<>(); |
| | | row.put("id", cfg.getId()); |
| | | row.put("name", cfg.getName()); |
| | | row.put("providerType", cfg.getProviderType()); |
| | | row.put("protocolType", cfg.getProtocolType()); |
| | | row.put("baseUrl", cfg.getBaseUrl()); |
| | | row.put("endpointPath", cfg.getEndpointPath()); |
| | | row.put("apiKey", cfg.getApiKey()); |
| | | row.put("authType", cfg.getAuthType()); |
| | | row.put("authHeaderName", cfg.getAuthHeaderName()); |
| | | row.put("model", cfg.getModel()); |
| | | row.put("capabilities", cfg.getCapabilities()); |
| | | row.put("requestOptions", cfg.getRequestOptions()); |
| | | row.put("thinking", cfg.getThinking()); |
| | | row.put("priority", cfg.getPriority()); |
| | | row.put("status", cfg.getStatus()); |