Skip to content

Commit

Permalink
📚 docs: update latest swarm version
Browse files Browse the repository at this point in the history
  • Loading branch information
davidaparicio committed Oct 21, 2024
1 parent 1aabac7 commit 7ae2adf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -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!)
Expand Down
9 changes: 1 addition & 8 deletions swarm_ollama/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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. "
Expand Down

0 comments on commit 7ae2adf

Please sign in to comment.