mirror of
https://github.com/carlrobertoh/ProxyAI.git
synced 2026-05-12 05:51:28 +00:00
feat: support custom OpenAI-compatible service (#383)
This commit is contained in:
parent
c8bb33d9b2
commit
8507c779b1
27 changed files with 772 additions and 166 deletions
|
|
@ -37,6 +37,7 @@ import java.io.IOException;
|
|||
import java.io.InputStreamReader;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import okhttp3.sse.EventSource;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
public class GenerateGitCommitMessageAction extends AnAction {
|
||||
|
|
@ -102,7 +103,7 @@ public class GenerateGitCommitMessageAction extends AnAction {
|
|||
private final StringBuilder messageBuilder = new StringBuilder();
|
||||
|
||||
@Override
|
||||
public void onMessage(String message) {
|
||||
public void onMessage(String message, EventSource eventSource) {
|
||||
messageBuilder.append(message);
|
||||
var application = ApplicationManager.getApplication();
|
||||
application.invokeLater(() ->
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue