Always submit function definitions in Simple mode too (#11016)
Switches Assistant2 to always provide functions. It's up to the model to choose to use them. At a later point, the `Submit::Codebase` should change the `tool_choice` to `query_codebase` rather than `auto`. For now, I think this will improve the experience for folks testing. Release Notes: - N/A
This commit is contained in:
parent
366d7e7728
commit
cf2272a949
1 changed files with 2 additions and 1 deletions
|
@ -314,7 +314,8 @@ impl AssistantChat {
|
||||||
let completion = this.update(cx, |this, cx| {
|
let completion = this.update(cx, |this, cx| {
|
||||||
this.push_new_assistant_message(cx);
|
this.push_new_assistant_message(cx);
|
||||||
|
|
||||||
let definitions = if call_count < limit && matches!(mode, SubmitMode::Codebase)
|
let definitions = if call_count < limit
|
||||||
|
&& matches!(mode, SubmitMode::Codebase | SubmitMode::Simple)
|
||||||
{
|
{
|
||||||
this.tool_registry.definitions()
|
this.tool_registry.definitions()
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue