-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: code format wit spring javaformat
- Loading branch information
1 parent
442e794
commit be34984
Showing
5 changed files
with
391 additions
and
379 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 22 additions & 20 deletions
42
src/main/java/org/mvnsearch/chatgpt/model/completion/chat/ChatTool.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,32 @@ | ||
package org.mvnsearch.chatgpt.model.completion.chat; | ||
|
||
|
||
public class ChatTool { | ||
private String type = "function"; | ||
private ChatFunction function; | ||
|
||
public ChatTool() { | ||
} | ||
private String type = "function"; | ||
|
||
private ChatFunction function; | ||
|
||
public ChatTool() { | ||
} | ||
|
||
public ChatTool(ChatFunction function) { | ||
this.function = function; | ||
} | ||
|
||
public ChatTool(ChatFunction function) { | ||
this.function = function; | ||
} | ||
public String getType() { | ||
return type; | ||
} | ||
|
||
public String getType() { | ||
return type; | ||
} | ||
public void setType(String type) { | ||
this.type = type; | ||
} | ||
|
||
public void setType(String type) { | ||
this.type = type; | ||
} | ||
public ChatFunction getFunction() { | ||
return function; | ||
} | ||
|
||
public ChatFunction getFunction() { | ||
return function; | ||
} | ||
public void setFunction(ChatFunction function) { | ||
this.function = function; | ||
} | ||
|
||
public void setFunction(ChatFunction function) { | ||
this.function = function; | ||
} | ||
} |
50 changes: 27 additions & 23 deletions
50
src/main/java/org/mvnsearch/chatgpt/model/completion/chat/ToolCall.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,38 @@ | ||
package org.mvnsearch.chatgpt.model.completion.chat; | ||
|
||
public class ToolCall { | ||
private String id; | ||
private String type; | ||
private FunctionCall function; | ||
|
||
public ToolCall() { | ||
} | ||
private String id; | ||
|
||
public String getId() { | ||
return id; | ||
} | ||
private String type; | ||
|
||
public void setId(String id) { | ||
this.id = id; | ||
} | ||
private FunctionCall function; | ||
|
||
public String getType() { | ||
return type; | ||
} | ||
public ToolCall() { | ||
} | ||
|
||
public void setType(String type) { | ||
this.type = type; | ||
} | ||
public String getId() { | ||
return id; | ||
} | ||
|
||
public FunctionCall getFunction() { | ||
return function; | ||
} | ||
public void setId(String id) { | ||
this.id = id; | ||
} | ||
|
||
public String getType() { | ||
return type; | ||
} | ||
|
||
public void setType(String type) { | ||
this.type = type; | ||
} | ||
|
||
public FunctionCall getFunction() { | ||
return function; | ||
} | ||
|
||
public void setFunction(FunctionCall function) { | ||
this.function = function; | ||
} | ||
|
||
public void setFunction(FunctionCall function) { | ||
this.function = function; | ||
} | ||
} |
Oops, something went wrong.