test: add plugin test code

This commit is contained in:
RockYang
2023-07-10 07:05:56 +08:00
parent 917b6012e8
commit 1d4179df75
4 changed files with 99 additions and 3 deletions

View File

@@ -10,8 +10,14 @@ type ApiRequest struct {
}
type Message struct {
Role string `json:"role"`
Content string `json:"content"`
Role string `json:"role"`
Content string `json:"content"`
FunctionCall FunctionCall `json:"function_call"`
}
type FunctionCall struct {
Name string `json:"name"`
Arguments string `json:"arguments"`
}
type ApiResponse struct {