mirror of
https://github.com/perstarkse/minne.git
synced 2026-04-23 09:18:36 +02:00
fix: corrected system settings for tests
This commit is contained in:
@@ -32,6 +32,7 @@ reqwest = {version = "0.12.12", features = ["charset", "json"]}
|
|||||||
sha2 = "0.10.8"
|
sha2 = "0.10.8"
|
||||||
url = { version = "2.5.2", features = ["serde"] }
|
url = { version = "2.5.2", features = ["serde"] }
|
||||||
uuid = { version = "1.10.0", features = ["v4", "serde"] }
|
uuid = { version = "1.10.0", features = ["v4", "serde"] }
|
||||||
|
surrealdb-migrations = "2.2.2"
|
||||||
|
|
||||||
minijinja = { version = "2.5.0", features = ["loader", "multi_template"] }
|
minijinja = { version = "2.5.0", features = ["loader", "multi_template"] }
|
||||||
minijinja-autoreload = "2.5.0"
|
minijinja-autoreload = "2.5.0"
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
use crate::storage::types::file_info::deserialize_flexible_id;
|
use crate::storage::types::file_info::deserialize_flexible_id;
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
use uuid::Uuid;
|
|
||||||
|
|
||||||
use crate::{error::AppError, storage::db::SurrealDbClient, storage::types::StoredObject};
|
use crate::{error::AppError, storage::db::SurrealDbClient, storage::types::StoredObject};
|
||||||
|
|
||||||
@@ -60,7 +59,7 @@ impl SystemSettings {
|
|||||||
|
|
||||||
pub fn new() -> Self {
|
pub fn new() -> Self {
|
||||||
Self {
|
Self {
|
||||||
id: Uuid::new_v4().to_string(),
|
id: "current".to_string(),
|
||||||
query_system_prompt: crate::storage::types::system_prompts::DEFAULT_QUERY_SYSTEM_PROMPT
|
query_system_prompt: crate::storage::types::system_prompts::DEFAULT_QUERY_SYSTEM_PROMPT
|
||||||
.to_string(),
|
.to_string(),
|
||||||
ingestion_system_prompt:
|
ingestion_system_prompt:
|
||||||
@@ -77,6 +76,7 @@ impl SystemSettings {
|
|||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
use super::*;
|
use super::*;
|
||||||
|
use uuid::Uuid;
|
||||||
|
|
||||||
#[tokio::test]
|
#[tokio::test]
|
||||||
async fn test_settings_initialization() {
|
async fn test_settings_initialization() {
|
||||||
|
|||||||
Reference in New Issue
Block a user