fix: Numeric values in Custom providers' headers section break configuration. #619 (#620)

https://github.com/carlrobertoh/CodeGPT/issues/619
This commit is contained in:
Laurențiu Lozan 2024-07-18 10:08:40 +02:00 committed by GitHub
parent e06221bd1b
commit 671d9caa07
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -44,7 +44,7 @@ public class CustomServiceFormTabbedPane extends JBTabbedPane {
public Map<String, String> getHeaders() {
return getTableData(headersTable).entrySet().stream()
.filter(entry -> entry.getKey() != null && entry.getValue() != null)
.collect(toMap(Entry::getKey, entry -> (String) entry.getValue()));
.collect(toMap(Entry::getKey, entry -> String.valueOf(entry.getValue())));
}
public void setBody(Map<String, Object> body) {