Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

feat(embed): add completion support to embedding crate

Steven Enamakelc6e639b3e47d
diff --git a/crates/openhuman-embed/src/complete.rs b/crates/openhuman-embed/src/complete.rs
index f6f864becf..007225e589 100644
--- a/crates/openhuman-embed/src/complete.rs
+++ b/crates/openhuman-embed/src/complete.rs
@@ -156,11 +156,11 @@ pub enum ResponseFormat {
}
impl ResponseFormat {
- fn wants_json(&self) -> bool {
+ pub(crate) fn wants_json(&self) -> bool {
!matches!(self, ResponseFormat::Text)
}
- fn into_wire(self) -> tinyinference_llm::model::ResponseFormat {
+ pub(crate) fn into_wire(self) -> tinyinference_llm::model::ResponseFormat {
use tinyinference_llm::model::ResponseFormat as Wire;
match self {
ResponseFormat::Text => Wire::Text,