Update README.md
Browse files
README.md
CHANGED
|
@@ -51,6 +51,8 @@ tools = [
|
|
| 51 |
}
|
| 52 |
}
|
| 53 |
]
|
|
|
|
|
|
|
| 54 |
messages = [{"role": "user", "content": "What is the weather in Istanbul and Singapore respectively?"}]
|
| 55 |
|
| 56 |
final_prompt = tokenizer.apply_chat_template(messages, tools, add_generation_prompt=True, tokenize=False)
|
|
|
|
| 51 |
}
|
| 52 |
}
|
| 53 |
]
|
| 54 |
+
# add this to make model to generate the reasoning first
|
| 55 |
+
tools.append({"type": "reasoning"})
|
| 56 |
messages = [{"role": "user", "content": "What is the weather in Istanbul and Singapore respectively?"}]
|
| 57 |
|
| 58 |
final_prompt = tokenizer.apply_chat_template(messages, tools, add_generation_prompt=True, tokenize=False)
|