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:
Kyle Kelley 2024-04-25 16:34:07 -07:00 committed by GitHub
parent 366d7e7728
commit cf2272a949
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -314,7 +314,8 @@ impl AssistantChat {
let completion = this.update(cx, |this, 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()
} else {