(role)
| 910 | }, |
| 911 | |
| 912 | encodeRole(role) { |
| 913 | const tokens = []; |
| 914 | tokens.push(special_tokens["<|start_header_id|>"]); |
| 915 | tokens.push(...this.encode(role)); |
| 916 | tokens.push(special_tokens["<|end_header_id|>"]); |
| 917 | tokens.push(...this.encode("\n\n")); |
| 918 | return tokens; |
| 919 | }, |
| 920 | |
| 921 | encodeMessage(role, content) { |
| 922 | const roleTokens = this.encodeRole(role); |
nothing calls this directly
no test coverage detected
searching dependent graphs…