@@ -65,7 +65,6 @@ public class ImportDialog extends AbstractDialog {
65
65
private JButton buttonCancel ;
66
66
private JButton buttonImport ;
67
67
private JProgressBar progressBar ;
68
- private LlmOptionsParam llmOptionsParam ;
69
68
70
69
public ImportDialog (JFrame parent , final ExtensionLlm extLlm ) {
71
70
super (parent , true );
@@ -116,7 +115,7 @@ private boolean importSwagger()
116
115
throws IOException , URISyntaxException , ApiException , DatabaseException {
117
116
118
117
String swaggerLocation = getSwaggerField ().getText ();
119
- llmOptionsParam = extLlm .getOptionsParam ();
118
+ LlmOptionsParam llmOptionsParam = extLlm .getOptionsParam ();
120
119
Integer endpointCount = 0 ;
121
120
122
121
if (StringUtils .isEmpty (llmOptionsParam .getApiKey ())) {
@@ -133,7 +132,7 @@ private boolean importSwagger()
133
132
134
133
LlmCommunicationService llmCommunicationService =
135
134
new LlmCommunicationService (
136
- llmOptionsParam .getModelName (), llmOptionsParam .getApiKey (), "" );
135
+ llmOptionsParam .getModelName (), llmOptionsParam .getApiKey (), llmOptionsParam . getEndpoint () );
137
136
138
137
if (StringUtils .isEmpty (swaggerLocation )) {
139
138
ThreadUtils .invokeAndWaitHandled (
0 commit comments