Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion rig-core/src/client/completion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ use std::sync::Arc;
/// Clone is required for conversions between client types.
pub trait CompletionClient: ProviderClient + Clone {
/// The type of CompletionModel used by the client.
type CompletionModel: CompletionModel;
// require the associated CompletionModel to be 'static so it can be used
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please use the original docstring here and move this detail to the trait docstrings rather than having it here

// behind trait objects (Box/Arc<dyn ... + 'static>) safely
type CompletionModel: CompletionModel + 'static;

/// Create a completion model with the given name.
///
Expand Down