Skip to content

Commit

Permalink
bump to 2.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
icebaker committed Jan 7, 2024
1 parent 3b822fa commit 232f88c
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 26 deletions.
8 changes: 4 additions & 4 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
PATH
remote: .
specs:
nano-bots (2.5.0)
nano-bots (2.5.1)
babosa (~> 2.0)
cohere-ai (~> 1.0, >= 1.0.1)
concurrent-ruby (~> 1.2, >= 1.2.2)
dotenv (~> 2.8, >= 2.8.1)
gemini-ai (~> 3.1, >= 3.1.2)
maritaca-ai (~> 1.0)
mistral-ai (~> 1.1)
mistral-ai (~> 1.1, >= 1.1.1)
ollama-ai (~> 1.0)
pry (~> 0.14.2)
rainbow (~> 3.1, >= 3.1.1)
Expand Down Expand Up @@ -59,7 +59,7 @@ GEM
maritaca-ai (1.0.0)
faraday (~> 2.8, >= 2.8.1)
method_source (1.0.0)
mistral-ai (1.1.0)
mistral-ai (1.1.1)
event_stream_parser (~> 1.0)
faraday (~> 2.8, >= 2.8.1)
multi_json (1.15.0)
Expand All @@ -68,7 +68,7 @@ GEM
faraday (~> 2.8)
os (1.1.4)
parallel (1.24.0)
parser (3.3.0.0)
parser (3.3.0.1)
ast (~> 2.4.1)
racc
pry (0.14.2)
Expand Down
32 changes: 17 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ https://user-images.githubusercontent.com/113217272/238141567-c58a240c-7b67-4b3b
## TL;DR and Quick Start

```sh
gem install nano-bots -v 2.5.0
gem install nano-bots -v 2.5.1
```

```bash
Expand Down Expand Up @@ -50,7 +50,7 @@ nb gpt.yml - eval "hi"
```

```ruby
gem 'nano-bots', '~> 2.5.0'
gem 'nano-bots', '~> 2.5.1'
```

```ruby
Expand Down Expand Up @@ -241,13 +241,13 @@ end
To install the CLI on your system:

```sh
gem install nano-bots -v 2.5.0
gem install nano-bots -v 2.5.1
```

To use it in a Ruby project as a library, add to your `Gemfile`:

```ruby
gem 'nano-bots', '~> 2.5.0'
gem 'nano-bots', '~> 2.5.1'
```

```sh
Expand Down Expand Up @@ -963,7 +963,7 @@ Set your provider credentials and choose your desired directory for the cartridg
services:
nano-bots:
image: ruby:3.2.2-slim-bookworm
command: sh -c "apt-get update && apt-get install -y --no-install-recommends build-essential libffi-dev libsodium-dev lua5.4-dev curl && curl -s https://raw.githubusercontent.com/babashka/babashka/master/install | bash && gem install nano-bots -v 2.5.0 && bash"
command: sh -c "apt-get update && apt-get install -y --no-install-recommends build-essential libffi-dev libsodium-dev lua5.4-dev curl && curl -s https://raw.githubusercontent.com/babashka/babashka/master/install | bash && gem install nano-bots -v 2.5.1 && bash"
environment:
COHERE_API_KEY: your-api-key
NANO_BOTS_ENCRYPTION_PASSWORD: UNSAFE
Expand All @@ -980,7 +980,7 @@ services:
services:
nano-bots:
image: ruby:3.2.2-slim-bookworm
command: sh -c "apt-get update && apt-get install -y --no-install-recommends build-essential libffi-dev libsodium-dev lua5.4-dev curl && curl -s https://raw.githubusercontent.com/babashka/babashka/master/install | bash && gem install nano-bots -v 2.5.0 && bash"
command: sh -c "apt-get update && apt-get install -y --no-install-recommends build-essential libffi-dev libsodium-dev lua5.4-dev curl && curl -s https://raw.githubusercontent.com/babashka/babashka/master/install | bash && gem install nano-bots -v 2.5.1 && bash"
environment:
MARITACA_API_KEY: your-api-key
NANO_BOTS_ENCRYPTION_PASSWORD: UNSAFE
Expand All @@ -997,7 +997,7 @@ services:
services:
nano-bots:
image: ruby:3.2.2-slim-bookworm
command: sh -c "apt-get update && apt-get install -y --no-install-recommends build-essential libffi-dev libsodium-dev lua5.4-dev curl && curl -s https://raw.githubusercontent.com/babashka/babashka/master/install | bash && gem install nano-bots -v 2.5.0 && bash"
command: sh -c "apt-get update && apt-get install -y --no-install-recommends build-essential libffi-dev libsodium-dev lua5.4-dev curl && curl -s https://raw.githubusercontent.com/babashka/babashka/master/install | bash && gem install nano-bots -v 2.5.1 && bash"
environment:
MISTRAL_API_KEY: your-api-key
NANO_BOTS_ENCRYPTION_PASSWORD: UNSAFE
Expand All @@ -1009,21 +1009,23 @@ services:

### Ollama Container

Remember that your `localhost` is inaccessible from inside Docker. You need to either establish [inter-container networking](https://docs.docker.com/compose/networking/) or use the [host's address](https://docs.docker.com/desktop/networking/#i-want-to-connect-from-a-container-to-a-service-on-the-host), depending on where the Ollama server is running.
Remember that your `localhost` is by default inaccessible from inside Docker. You need to either establish [inter-container networking](https://docs.docker.com/compose/networking/), use the [host's address](https://docs.docker.com/desktop/networking/#i-want-to-connect-from-a-container-to-a-service-on-the-host), or use the [host network](https://docs.docker.com/network/network-tutorial-host/), depending on where the Ollama server is running and your preferences.

```yaml
---
services:
nano-bots:
image: ruby:3.2.2-slim-bookworm
command: sh -c "apt-get update && apt-get install -y --no-install-recommends build-essential libffi-dev libsodium-dev lua5.4-dev curl && curl -s https://raw.githubusercontent.com/babashka/babashka/master/install | bash && gem install nano-bots -v 2.5.0 && bash"
command: sh -c "apt-get update && apt-get install -y --no-install-recommends build-essential libffi-dev libsodium-dev lua5.4-dev curl && curl -s https://raw.githubusercontent.com/babashka/babashka/master/install | bash && gem install nano-bots -v 2.5.1 && bash"
environment:
OLLAMA_API_ADDRESS: http://host.docker.internal:11434
OLLAMA_API_ADDRESS: http://localhost:11434
NANO_BOTS_ENCRYPTION_PASSWORD: UNSAFE
NANO_BOTS_END_USER: your-user
volumes:
- ./your-cartridges:/root/.local/share/nano-bots/cartridges
- ./your-state-path:/root/.local/state/nano-bots
# If you are running the Ollama server on your localhost:
network_mode: host # WARNING: Be careful, this may be a security risk.
```

### OpenAI ChatGPT Container
Expand All @@ -1033,7 +1035,7 @@ services:
services:
nano-bots:
image: ruby:3.2.2-slim-bookworm
command: sh -c "apt-get update && apt-get install -y --no-install-recommends build-essential libffi-dev libsodium-dev lua5.4-dev curl && curl -s https://raw.githubusercontent.com/babashka/babashka/master/install | bash && gem install nano-bots -v 2.5.0 && bash"
command: sh -c "apt-get update && apt-get install -y --no-install-recommends build-essential libffi-dev libsodium-dev lua5.4-dev curl && curl -s https://raw.githubusercontent.com/babashka/babashka/master/install | bash && gem install nano-bots -v 2.5.1 && bash"
environment:
OPENAI_API_KEY: your-access-token
NANO_BOTS_ENCRYPTION_PASSWORD: UNSAFE
Expand All @@ -1052,7 +1054,7 @@ services:
services:
nano-bots:
image: ruby:3.2.2-slim-bookworm
command: sh -c "apt-get update && apt-get install -y --no-install-recommends build-essential libffi-dev libsodium-dev lua5.4-dev curl && curl -s https://raw.githubusercontent.com/babashka/babashka/master/install | bash && gem install nano-bots -v 2.5.0 && bash"
command: sh -c "apt-get update && apt-get install -y --no-install-recommends build-essential libffi-dev libsodium-dev lua5.4-dev curl && curl -s https://raw.githubusercontent.com/babashka/babashka/master/install | bash && gem install nano-bots -v 2.5.1 && bash"
environment:
GOOGLE_API_KEY: your-api-key
NANO_BOTS_ENCRYPTION_PASSWORD: UNSAFE
Expand All @@ -1069,7 +1071,7 @@ services:
services:
nano-bots:
image: ruby:3.2.2-slim-bookworm
command: sh -c "apt-get update && apt-get install -y --no-install-recommends build-essential libffi-dev libsodium-dev lua5.4-dev curl && curl -s https://raw.githubusercontent.com/babashka/babashka/master/install | bash && gem install nano-bots -v 2.5.0 && bash"
command: sh -c "apt-get update && apt-get install -y --no-install-recommends build-essential libffi-dev libsodium-dev lua5.4-dev curl && curl -s https://raw.githubusercontent.com/babashka/babashka/master/install | bash && gem install nano-bots -v 2.5.1 && bash"
environment:
GOOGLE_CREDENTIALS_FILE_PATH: /root/.config/google-credentials.json
GOOGLE_REGION: us-east4
Expand All @@ -1088,7 +1090,7 @@ services:
services:
nano-bots:
image: ruby:3.2.2-slim-bookworm
command: sh -c "apt-get update && apt-get install -y --no-install-recommends build-essential libffi-dev libsodium-dev lua5.4-dev curl && curl -s https://raw.githubusercontent.com/babashka/babashka/master/install | bash && gem install nano-bots -v 2.5.0 && bash"
command: sh -c "apt-get update && apt-get install -y --no-install-recommends build-essential libffi-dev libsodium-dev lua5.4-dev curl && curl -s https://raw.githubusercontent.com/babashka/babashka/master/install | bash && gem install nano-bots -v 2.5.1 && bash"
environment:
GOOGLE_REGION: us-east4
NANO_BOTS_ENCRYPTION_PASSWORD: UNSAFE
Expand Down Expand Up @@ -1144,5 +1146,5 @@ gem build nano-bots.gemspec
gem signin
gem push nano-bots-2.5.0.gem
gem push nano-bots-2.5.1.gem
```
14 changes: 9 additions & 5 deletions docker-compose.example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,31 @@
services:
nano-bots:
image: ruby:3.2.2-slim-bookworm
command: sh -c "apt-get update && apt-get install -y --no-install-recommends build-essential libffi-dev libsodium-dev lua5.4-dev curl && curl -s https://raw.githubusercontent.com/babashka/babashka/master/install | bash && gem install nano-bots -v 2.5.0 && bash"
command: sh -c "apt-get update && apt-get install -y --no-install-recommends build-essential libffi-dev libsodium-dev lua5.4-dev curl && curl -s https://raw.githubusercontent.com/babashka/babashka/master/install | bash && gem install nano-bots -v 2.5.1 && bash"
environment:
COHERE_API_KEY: your-api-key

GOOGLE_API_KEY: your-api-key
# GOOGLE_API_KEY: your-api-key

GOOGLE_CREDENTIALS_FILE_PATH: /root/.config/google-credentials.json
GOOGLE_PROJECT_ID: your-project-id
# GOOGLE_CREDENTIALS_FILE_PATH: /root/.config/google-credentials.json
# GOOGLE_PROJECT_ID: your-project-id
GOOGLE_REGION: us-east4

MARITACA_API_KEY: 'your-api-key'

MISTRAL_API_KEY: your-api-key

OLLAMA_API_ADDRESS: http://host.docker.internal:11434
OLLAMA_API_ADDRESS: http://localhost:11434

OPENAI_API_KEY: your-access-token

NANO_BOTS_ENCRYPTION_PASSWORD: UNSAFE
NANO_BOTS_END_USER: your-user

volumes:
- ./google-credentials.json:/root/.config/google-credentials.json
- ./your-cartridges:/root/.local/share/nano-bots/cartridges
- ./your-state-path:/root/.local/state/nano-bots

# If you are running the Ollama server on your localhost:
# network_mode: host # WARNING: Be careful, this may be a security risk.
2 changes: 1 addition & 1 deletion nano-bots.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Gem::Specification.new do |spec|
spec.add_dependency 'cohere-ai', '~> 1.0', '>= 1.0.1'
spec.add_dependency 'gemini-ai', '~> 3.1', '>= 3.1.2'
spec.add_dependency 'maritaca-ai', '~> 1.0'
spec.add_dependency 'mistral-ai', '~> 1.1'
spec.add_dependency 'mistral-ai', '~> 1.1', '>= 1.1.1'
spec.add_dependency 'ollama-ai', '~> 1.0'
spec.add_dependency 'ruby-openai', '~> 6.3', '>= 6.3.1'

Expand Down
2 changes: 1 addition & 1 deletion static/gem.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module NanoBot
GEM = {
name: 'nano-bots',
version: '2.5.0',
version: '2.5.1',
specification: '2.3.0',
author: 'icebaker',
summary: 'Ruby Implementation of Nano Bots: small, AI-powered bots for OpenAI ChatGPT, Ollama, Mistral AI, Cohere Command, Maritaca AI MariTalk, and Google Gemini.',
Expand Down

0 comments on commit 232f88c

Please sign in to comment.