generated from SAP/repository-template
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
11bc217
commit fdd7d5f
Showing
4 changed files
with
168 additions
and
21 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
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
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
73 changes: 73 additions & 0 deletions
73
.../gen-ai-hub/test-util/mock-data/orchestration/genaihub-chat-completion-filter-config.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,73 @@ | ||
{ | ||
"request_id": "request-id", | ||
"module_results": { | ||
"templating": [ | ||
{ | ||
"role": "user", | ||
"content": "Create {number} paraphrases of {phrase}" | ||
} | ||
], | ||
"input_filtering": { | ||
"message": "Input filter passed successfully.", | ||
"data": { | ||
"original_service_response": { | ||
"Hate": 0, | ||
"SelfHarm": 0 | ||
} | ||
} | ||
}, | ||
"llm": { | ||
"id": "chatcmpl-request-id", | ||
"object": "chat.completion", | ||
"created": 1722006045, | ||
"model": "gpt-35-turbo-16k", | ||
"choices": [ | ||
{ | ||
"index": 0, | ||
"message": { | ||
"role": "assistant", | ||
"content": "I'm sorry, but I cannot generate a specific number of paraphrases without knowing the phrase you would like me to paraphrase. Could you please provide the phrase you would like me to work with?" | ||
}, | ||
"finish_reason": "stop" | ||
} | ||
], | ||
"usage": { | ||
"completion_tokens": 40, | ||
"prompt_tokens": 17, | ||
"total_tokens": 57 | ||
} | ||
}, | ||
"output_filtering": { | ||
"message": "Output filter passed successfully.", | ||
"data": { | ||
"original_service_response": { | ||
"Hate": 0, | ||
"SelfHarm": 0, | ||
"Sexual": 0, | ||
"Violence": 0 | ||
} | ||
} | ||
} | ||
}, | ||
"orchestration_result": { | ||
"id": "chatcmpl-request-id", | ||
"object": "chat.completion", | ||
"created": 1722006045, | ||
"model": "gpt-35-turbo-16k", | ||
"choices": [ | ||
{ | ||
"index": 0, | ||
"message": { | ||
"role": "assistant", | ||
"content": "I'm sorry, but I cannot generate a specific number of paraphrases without knowing the phrase you would like me to paraphrase. Could you please provide the phrase you would like me to work with?" | ||
}, | ||
"finish_reason": "stop" | ||
} | ||
], | ||
"usage": { | ||
"completion_tokens": 40, | ||
"prompt_tokens": 17, | ||
"total_tokens": 57 | ||
} | ||
} | ||
} |