(*args: str)
| 163 | |
| 164 | # it's dirty to type, so it's a good way to have fun |
| 165 | def pack_user_ass_to_openai_messages(*args: str): |
| 166 | roles = ["user", "assistant"] |
| 167 | return [ |
| 168 | {"role": roles[i % 2], "content": content} for i, content in enumerate(args) |
| 169 | ] |
| 170 | |
| 171 | |
| 172 | def is_float_regex(value): |
nothing calls this directly
no outgoing calls
no test coverage detected