diff --git a/README.md b/README.md index 2ef9fa5..f5a1a2f 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,10 @@ ![Swarm Logo](assets/logo.png) -# Swarm (experimental, educational) +# Swarm-Ollama (experimental) -An educational framework exploring ergonomic, lightweight multi-agent orchestration. +The educational framework lightweight multi-agent orchestration with the [Ollama](https://github.com/ollama/ollama) wrapper. + +Current [Swarm version](https://github.com/openai/swarm): [latest/9db581cecaacea0d46a933d6453c312b034dbf47](https://github.com/openai/swarm/commit/9db581cecaacea0d46a933d6453c312b034dbf47) > [!WARNING] > Swarm is currently an experimental sample framework intended to explore ergonomic interfaces for multi-agent systems. It is not intended to be used in production, and therefore has no official support. (This also means we will not be reviewing PRs or issues!) diff --git a/swarm_ollama/core.py b/swarm_ollama/core.py index 462cbc3..16bc7b3 100644 --- a/swarm_ollama/core.py +++ b/swarm_ollama/core.py @@ -26,13 +26,6 @@ __CTX_VARS_NAME__ = "context_variables" -# Initialize Ollama client -# ollama_client = ollama.Client(host="http://localhost:11434") -# Wrap Ollama client -# wrapped_client = OllamaWrapper(ollama_client) -# Initialize Swarm with wrapped client -# client = Swarm(client=wrapped_client) - class Swarm: def __init__(self, base_url="http://localhost:11434", client=None): @@ -41,7 +34,7 @@ def __init__(self, base_url="http://localhost:11434", client=None): ollama_client = ollama.Client(host=base_url) wrapped_client = OllamaWrapper(ollama_client) self.client = wrapped_client - except: + except Exception as e: raise ConnectionError( f"Failed to connect to Ollama at {base_url}. " "Make sure Ollama is running and the URL is correct. "