-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IN PROGRESS] update mock promt & response
- Loading branch information
1 parent
ea2b583
commit d1f9c21
Showing
6 changed files
with
152 additions
and
3 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
34 changes: 34 additions & 0 deletions
34
.../src/com/axonivy/connector/openai/mock/json/assist-ask-without-system-promt-response.json
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"id": "chatcmpl-AVHUYbcl2WKpRj0oaLrZm8yNXosBQ", | ||
"object": "chat.completion", | ||
"created": 1732018770, | ||
"model": "gpt-3.5-turbo-0125", | ||
"choices": [ | ||
{ | ||
"index": 0, | ||
"message": { | ||
"role": "assistant", | ||
"content": "Sure, here is a combobox for you to pick a brand out of Mercedes, BMW, or Tesla:\n\n<select>\n <option value=\"mercedes\">Mercedes</option>\n <option value=\"bmw\">BMW</option>\n <option value=\"tesla\">Tesla</option>\n</select>", | ||
"refusal": null | ||
}, | ||
"logprobs": null, | ||
"finish_reason": "stop" | ||
} | ||
], | ||
"usage": { | ||
"prompt_tokens": 28, | ||
"completion_tokens": 64, | ||
"total_tokens": 92, | ||
"prompt_tokens_details": { | ||
"cached_tokens": 0, | ||
"audio_tokens": 0 | ||
}, | ||
"completion_tokens_details": { | ||
"reasoning_tokens": 0, | ||
"audio_tokens": 0, | ||
"accepted_prediction_tokens": 0, | ||
"rejected_prediction_tokens": 0 | ||
} | ||
}, | ||
"system_fingerprint": null | ||
} |
14 changes: 14 additions & 0 deletions
14
...ctor-test/src/com/axonivy/connector/openai/mock/json/assist-ask-without-system-promt.json
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"model": "gpt-3.5-turbo", | ||
"max_tokens": 1024, | ||
"temperature": 1, | ||
"top_p": 1, | ||
"frequency_penalty": 0, | ||
"presence_penalty": 0, | ||
"messages": [ | ||
{ | ||
"role": "user", | ||
"content": "insert a combobox to pick a brand out of: Mercedes, BMW or Tesla" | ||
} | ||
] | ||
} |
34 changes: 34 additions & 0 deletions
34
.../src/com/axonivy/connector/openai/mock/json/assist-insert-with-system-promt-response.json
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"id": "chatcmpl-AVHNuLIeqrGBUWPhDez363Gs5akFe", | ||
"object": "chat.completion", | ||
"created": 1732018358, | ||
"model": "gpt-3.5-turbo-0125", | ||
"choices": [ | ||
{ | ||
"index": 0, | ||
"message": { | ||
"role": "assistant", | ||
"content": "<select id=\"brand-select\">\n <option value=\"mercedes\">Mercedes</option>\n <option value=\"bmw\">BMW</option>\n <option value=\"tesla\">Tesla</option>\n</select>", | ||
"refusal": null | ||
}, | ||
"logprobs": null, | ||
"finish_reason": "stop" | ||
} | ||
], | ||
"usage": { | ||
"prompt_tokens": 179, | ||
"completion_tokens": 46, | ||
"total_tokens": 225, | ||
"prompt_tokens_details": { | ||
"cached_tokens": 0, | ||
"audio_tokens": 0 | ||
}, | ||
"completion_tokens_details": { | ||
"reasoning_tokens": 0, | ||
"audio_tokens": 0, | ||
"accepted_prediction_tokens": 0, | ||
"rejected_prediction_tokens": 0 | ||
} | ||
}, | ||
"system_fingerprint": null | ||
} |
18 changes: 18 additions & 0 deletions
18
...ctor-test/src/com/axonivy/connector/openai/mock/json/assist-insert-with-system-promt.json
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"model": "gpt-3.5-turbo", | ||
"max_tokens": 1024, | ||
"temperature": 1, | ||
"top_p": 1, | ||
"frequency_penalty": 0, | ||
"presence_penalty": 0, | ||
"messages": [ | ||
{ | ||
"role": "system", | ||
"content": "SYSTEM_PROMT" | ||
}, | ||
{ | ||
"role": "user", | ||
"content": "insert a combobox to pick a brand out of: Mercedes, BMW or Tesla" | ||
} | ||
] | ||
} |
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