Skip to content

Commit

Permalink
Merge pull request #24 from google/token-getters
Browse files Browse the repository at this point in the history
add chat_template::{bos_token,eos_token}()
  • Loading branch information
ochafik authored Jan 20, 2025
2 parents 51a4a07 + 84f63ef commit b8437df
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/minja/chat-template.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ class chat_template {
}

const std::string & source() const { return source_; }
const std::string & bos_token() const { return bos_token_; }
const std::string & eos_token() const { return eos_token_; }
bool supports_tools() const { return supports_tools_; }
bool supports_parallel_tool_calls() const { return supports_parallel_tool_calls_; }

Expand Down

0 comments on commit b8437df

Please sign in to comment.