r"""When the n > 1, get all the messages content.
(completion: ChatCompletion)
| 98 | |
| 99 | |
| 100 | def get_all_messages_content(completion: ChatCompletion) -> List[str]: |
| 101 | r"""When the n > 1, get all the messages content.""" |
| 102 | return [c.message.content for c in completion.choices] |
| 103 | |
| 104 | |
| 105 | def get_probabilities(completion: ChatCompletion) -> List[List[TokenLogProb]]: |
nothing calls this directly
no outgoing calls
no test coverage detected