Everything is streaming (#7247)
Co-authored-by: Douwe Osinga <douwe@squareup.com> Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1673,11 +1673,11 @@ pub async fn handle_openrouter_auth() -> anyhow::Result<()> {
|
||||
|
||||
match create("openrouter", model_config, Vec::new()).await {
|
||||
Ok(provider) => {
|
||||
let model_config = provider.get_model_config();
|
||||
let provider_model_config = provider.get_model_config();
|
||||
let test_result = provider
|
||||
.complete_with_model(
|
||||
None,
|
||||
&model_config,
|
||||
.complete(
|
||||
&provider_model_config,
|
||||
"",
|
||||
"You are goose, an AI assistant.",
|
||||
&[Message::user().with_text("Say 'Configuration test successful!'")],
|
||||
&[],
|
||||
|
||||
@@ -211,8 +211,10 @@ pub async fn classify_planner_response(
|
||||
let prompt = format!("The text below is the output from an AI model which can either provide a plan or list of clarifying questions. Based on the text below, decide if the output is a \"plan\" or \"clarifying questions\".\n---\n{message_text}");
|
||||
|
||||
let message = Message::user().with_text(&prompt);
|
||||
let model_config = provider.get_model_config();
|
||||
let (result, _usage) = provider
|
||||
.complete(
|
||||
&model_config,
|
||||
session_id,
|
||||
"Reply only with the classification label: \"plan\" or \"clarifying questions\"",
|
||||
&[message],
|
||||
@@ -840,8 +842,10 @@ impl CliSession {
|
||||
) -> Result<(), anyhow::Error> {
|
||||
let plan_prompt = self.agent.get_plan_prompt(&self.session_id).await?;
|
||||
output::show_thinking();
|
||||
let model_config = reasoner.get_model_config();
|
||||
let (plan_response, _usage) = reasoner
|
||||
.complete(
|
||||
&model_config,
|
||||
&self.session_id,
|
||||
&plan_prompt,
|
||||
plan_messages.messages(),
|
||||
|
||||
Reference in New Issue
Block a user