forked from Mirror/ollama4j
		
	Add support for registering object instances instead of only through the @OllamaToolService annotation
				
					
				
			This commit is contained in:
		@@ -338,7 +338,7 @@ class TestRealAPIs {
 | 
			
		||||
            ollamaAPI.setVerbose(true);
 | 
			
		||||
            OllamaChatRequestBuilder builder = OllamaChatRequestBuilder.getInstance(config.getModel());
 | 
			
		||||
 | 
			
		||||
            ollamaAPI.registerAnnotatedTools();
 | 
			
		||||
            ollamaAPI.registerAnnotatedTools(new AnnotatedTool());
 | 
			
		||||
 | 
			
		||||
            OllamaChatRequest requestModel = builder
 | 
			
		||||
                    .withMessage(OllamaChatMessageRole.USER,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user