Skip to content

Commit b8437df

Browse files
authored
Merge pull request #24 from google/token-getters
add chat_template::{bos_token,eos_token}()
2 parents 51a4a07 + 84f63ef commit b8437df

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/minja/chat-template.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,8 @@ class chat_template {
113113
}
114114

115115
const std::string & source() const { return source_; }
116+
const std::string & bos_token() const { return bos_token_; }
117+
const std::string & eos_token() const { return eos_token_; }
116118
bool supports_tools() const { return supports_tools_; }
117119
bool supports_parallel_tool_calls() const { return supports_parallel_tool_calls_; }
118120

0 commit comments

Comments
 (0)