This commit is contained in:
Mubelotix 2025-07-04 13:37:03 +02:00 committed by GitHub
commit 47bfdc65c7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 2259 additions and 2 deletions

View file

@ -35,7 +35,7 @@ pub struct Server<State = Owned> {
pub static TEST_TEMP_DIR: Lazy<TempDir> = Lazy::new(|| TempDir::new().unwrap());
impl Server<Owned> {
fn into_shared(self) -> Server<Shared> {
pub fn into_shared(self) -> Server<Shared> {
Server { service: self.service, _dir: self._dir, _marker: PhantomData }
}
@ -327,7 +327,7 @@ impl<State> Server<State> {
self.service.get(url).await
}
pub(super) fn _index(&self, uid: impl AsRef<str>) -> Index<'_> {
pub fn _index(&self, uid: impl AsRef<str>) -> Index<'_> {
Index {
uid: uid.as_ref().to_string(),
service: &self.service,

File diff suppressed because it is too large Load diff

View file

@ -1,4 +1,5 @@
mod binary_quantized;
mod fragments;
#[cfg(feature = "test-ollama")]
mod ollama;
mod openai;