mirror of
				https://github.com/amithkoujalgi/ollama4j.git
				synced 2025-10-31 00:20:40 +01:00 
			
		
		
		
	Refactor exception handling by replacing OllamaBaseException with OllamaException across the codebase. Update relevant method signatures and import statements accordingly.
This commit is contained in:
		| @@ -337,7 +337,7 @@ import com.couchbase.client.java.Scope; | ||||
| import com.couchbase.client.java.json.JsonObject; | ||||
| import com.couchbase.client.java.query.QueryResult; | ||||
| import io.github.ollama4j.OllamaAPI; | ||||
| import io.github.ollama4j.exceptions.OllamaBaseException; | ||||
| import io.github.ollama4j.exceptions.OllamaException; | ||||
| import io.github.ollama4j.exceptions.ToolInvocationException; | ||||
| import io.github.ollama4j.tools.OllamaToolsResult; | ||||
| import io.github.ollama4j.tools.ToolFunction; | ||||
| @@ -356,7 +356,7 @@ import java.util.Map; | ||||
|  | ||||
| public class CouchbaseToolCallingExample { | ||||
|  | ||||
|     public static void main(String[] args) throws IOException, ToolInvocationException, OllamaBaseException, InterruptedException { | ||||
|     public static void main(String[] args) throws IOException, ToolInvocationException, OllamaException, InterruptedException { | ||||
|         String connectionString = Utilities.getFromEnvVar("CB_CLUSTER_URL"); | ||||
|         String username = Utilities.getFromEnvVar("CB_CLUSTER_USERNAME"); | ||||
|         String password = Utilities.getFromEnvVar("CB_CLUSTER_PASSWORD"); | ||||
|   | ||||
| @@ -12,11 +12,8 @@ This API corresponds to the [PS](https://github.com/ollama/ollama/blob/main/docs | ||||
| package io.github.ollama4j.localtests; | ||||
|  | ||||
| import io.github.ollama4j.OllamaAPI; | ||||
| import io.github.ollama4j.exceptions.OllamaBaseException; | ||||
| import io.github.ollama4j.models.ps.ModelsProcessResponse; | ||||
|  | ||||
| import java.io.IOException; | ||||
|  | ||||
| public class Main { | ||||
|     public static void main(String[] args) { | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 amithkoujalgi
					amithkoujalgi