Skip to content

Commit 6838937

Browse files
fix doctests
1 parent 20c4d50 commit 6838937

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/settings.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ pub struct OpenAIEmbedderSettings {
183183
/// api_key: Some("foobarbaz".to_string()),
184184
/// model: "nomic-embed-text".to_string(),
185185
/// document_template: Some("A document titled {{doc.title}} whose description starts with {{doc.overview|truncatewords: 20}}".to_string()),
186+
/// document_template_max_bytes: None,
186187
/// };
187188
/// # let expected = r#"{"url":"http://localhost:11434/api/embeddings","apiKey":"foobarbaz","model":"nomic-embed-text","documentTemplate":"A document titled {{doc.title}} whose description starts with {{doc.overview|truncatewords: 20}}"}"#;
188189
/// # let expected: OllamaEmbedderSettings = serde_json::from_str(expected).unwrap();
@@ -251,6 +252,7 @@ pub struct OllamaEmbedderSettings {
251252
/// api_key: Some("SOURCE_API_KEY".to_string()),
252253
/// dimensions: Some(512),
253254
/// document_template: Some("A document titled {{doc.title}} whose description starts with {{doc.overview|truncatewords: 20}}".to_string()),
255+
/// document_template_max_bytes: None,
254256
/// request: HashMap::from([
255257
/// ("model".to_string(), Value::from("MODEL_NAME")),
256258
/// ("prompt".to_string(), Value::from("{{text}}"))

0 commit comments

Comments
 (0)