Skip to content

feat: OpenRouter streaming with Parallel Tool Calls#379

Closed
piotrostr wants to merge 17 commits into0xPlaygrounds:mainfrom
piotrostr:fix/openai-id-missing
Closed

feat: OpenRouter streaming with Parallel Tool Calls#379
piotrostr wants to merge 17 commits into0xPlaygrounds:mainfrom
piotrostr:fix/openai-id-missing

Conversation

@piotrostr
Copy link
Copy Markdown
Contributor

  • pass on IDs as well
  • fix serde

Copy link
Copy Markdown
Contributor

@0xMochan 0xMochan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some debug FIXME's left behind!

let mut request = self.create_completion_request(completion_request)?;

request = merge(request, json!({"stream": true}));
if std::env::var("DEBUG").is_ok() {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be converted into a debug! tracing call or removed

}
}

// FIXME remove this
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here

continue;
};

// FIXME remove this
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto

};

yield Ok(streaming::StreamingChoice::ToolCall(name, "".to_string(), arguments))
if std::env::var("DEBUG").is_ok() {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto

@piotrostr piotrostr changed the title fix/openai id missing feat: Openrouter streaming with Parallel Tool Calls Apr 4, 2025
@piotrostr piotrostr changed the title feat: Openrouter streaming with Parallel Tool Calls feat: OpenRouter streaming with Parallel Tool Calls Apr 4, 2025
@0xMochan
Copy link
Copy Markdown
Contributor

The plan for this PR is to (manually) cherry pick the changes into the streaming refactor from #388 .

@joshua-mo-143
Copy link
Copy Markdown
Contributor

Superceded by #388.

Not sure if there's anything else we need to take from this one? cc @0xMochan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants