Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: 2.1
aliases:
- &rust_container
docker:
- image: cimg/rust:1.86.0
- image: cimg/rust:1.89.0
jobs:
testing:
<<: *rust_container
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2025 Kevin RS Foundation
Copyright (c) 2026 Wise AI Foundation

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
75 changes: 37 additions & 38 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
[![docs](https://docs.rs/gems/badge.svg)](https://docs.rs/gems/)
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)

| 🐧 Linux `(Recommended)` | 🪟 Windows |
| :------: | :--------: |
| ![gems-demo](https://github.com/user-attachments/assets/c446c29f-d4c8-4ee0-9e3d-951310e2b972) | ![gems-demo](https://github.com/user-attachments/assets/e942d1ad-7df6-4532-b22f-d4c586e64c8a) |
| [Download Executable File](https://github.com/kevin-rs/gems/releases/download/v0.1.4/gems) | [Download `.exe` File](https://github.com/kevin-rs/gems/releases/download/v0.1.4/gems.exe) |
| `cargo install gems --all-features` | `cargo install gems --all-features` |
| `gems -h` | `gems -h` |
| 🐧 Linux `(Recommended)` | 🪟 Windows |
| :--------------------------------------------------------------------------------------------: | :--------------------------------------------------------------------------------------------: |
| ![gems-demo](https://github.com/user-attachments/assets/c446c29f-d4c8-4ee0-9e3d-951310e2b972) | ![gems-demo](https://github.com/user-attachments/assets/e942d1ad-7df6-4532-b22f-d4c586e64c8a) |
| [Download Executable File](https://github.com/wiseaidotdev/gems/releases/download/v0.1.4/gems) | [Download `.exe` File](https://github.com/wiseaidotdev/gems/releases/download/v0.1.4/gems.exe) |
| `cargo install gems --all-features` | `cargo install gems --all-features` |
| `gems -h` | `gems -h` |

</div>

Expand Down Expand Up @@ -143,33 +143,30 @@ gems

## 🎨 Options

| Option | Description |
|--------------------------|----------------------------------------------------------|
| `` | TUI mode. |
| `--api-key` | Specify the API key for accessing the Gemini API. |
| `--model` | Specify the model to use for generating content. |

| Option | Description |
| ----------- | ------------------------------------------------- |
| `` | TUI mode. |
| `--api-key` | Specify the API key for accessing the Gemini API. |
| `--model` | Specify the model to use for generating content. |

## 🛠 Subcommands

| Subcommand | Description |
|-------------------------|----------------------------------------------------------|
| `generate` | Generate creative content. |
| `vision` | Analyze an image and generate content from text. |
| `stream` | Stream the generation of content. |
| `imagen` | Generate an image. |
| `vidgen` | Generate a video. |
| `tts` | Text to speech. |
| `count` | Count the number of tokens in a text. |
| `embed` | Embed content into a specified model. |
| `batch` | Batch embed multiple contents. |
| `info` | Get information about the current model. |
| `list` | List available models. |

| Subcommand | Description |
| ---------- | ------------------------------------------------ |
| `generate` | Generate creative content. |
| `vision` | Analyze an image and generate content from text. |
| `stream` | Stream the generation of content. |
| `imagen` | Generate an image. |
| `vidgen` | Generate a video. |
| `tts` | Text to speech. |
| `count` | Count the number of tokens in a text. |
| `embed` | Embed content into a specified model. |
| `batch` | Batch embed multiple contents. |
| `info` | Get information about the current model. |
| `list` | List available models. |

## ✨ Usage as Dependency


1. Add the `gems` crate:

```toml
Expand All @@ -195,7 +192,7 @@ gems
gemini_client.set_api_key("your-api-key".to_string());

let parameters = ChatBuilder::default()
.model(Model::Flash20)
.model(Model::Flash3Preview)
.messages(vec![Message::User {
content: Content::Text("Hello".to_string()),
name: None,
Expand All @@ -222,21 +219,21 @@ This repository contains a list of notebooks examples on how to use the sdk and
1. Clone the repository to your local machine:

```sh
git clone https://github.com/kevin-rs/gems.git
git clone https://github.com/wiseaidotdev/gems.git
```

1. Install the required dependencies and libraries. Make sure you have [`Rust`](https://rustup.rs/), [`Jupyter Notebook`](https://jupyter.org/install), and [`evcxr_jupyter`](https://github.com/evcxr/evcxr/blob/main/evcxr_jupyter/README.md) installed on your system.

```sh
# Install a Rust toolchain (e.g. nightly):
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain nightly

# Install Jupyter Notebook
pip install notebook

# Install evcxr_jupyter
cargo install evcxr_jupyter
evcxr_jupyter --install
evcxr_jupyter --install
```

1. Navigate to the cloned repository and build the project:
Expand All @@ -254,16 +251,18 @@ This repository contains a list of notebooks examples on how to use the sdk and

1. Access the notebooks in your web browser by clicking on the notebook file you want to explore.

| ID | Example | Open on GitHub | Launch on Binder | Launch on Colab |
|----|---------------|-----------|:-------------|-------------|
| 1 | **Basic** | [![Github](https://img.shields.io/badge/launch-Github-181717.svg?logo=github&logoColor=white)](./examples/basic.ipynb) | [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/kevin-rs/gems/main?filepath=examples/basic.ipynb) | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/kevin-rs/gems/blob/main/examples/basic.ipynb) |
| 2 | **Rocket** | [![Github](https://img.shields.io/badge/launch-Github-181717.svg?logo=github&logoColor=white)](./examples/rocket.ipynb) | [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/kevin-rs/gems/main?filepath=examples/rocket.ipynb) | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/kevin-rs/gems/blob/main/examples/rocket.ipynb) |
| 3 | **Axum** | [![Github](https://img.shields.io/badge/launch-Github-181717.svg?logo=github&logoColor=white)](./examples/axum.ipynb) | [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/kevin-rs/gems/main?filepath=examples/axum.ipynb) | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/kevin-rs/gems/blob/main/examples/axum.ipynb) |
| ID | Example | Open on GitHub | Launch on Binder | Launch on Colab |
| --- | ---------- | ----------------------------------------------------------------------------------------------------------------------- | :--------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| 1 | **Basic** | [![Github](https://img.shields.io/badge/launch-Github-181717.svg?logo=github&logoColor=white)](./examples/basic.ipynb) | [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/wiseaidotdev/gems/main?filepath=examples/basic.ipynb) | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/wiseaidotdev/gems/blob/main/examples/basic.ipynb) |
| 2 | **Rocket** | [![Github](https://img.shields.io/badge/launch-Github-181717.svg?logo=github&logoColor=white)](./examples/rocket.ipynb) | [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/wiseaidotdev/gems/main?filepath=examples/rocket.ipynb) | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/wiseaidotdev/gems/blob/main/examples/rocket.ipynb) |
| 3 | **Axum** | [![Github](https://img.shields.io/badge/launch-Github-181717.svg?logo=github&logoColor=white)](./examples/axum.ipynb) | [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/wiseaidotdev/gems/main?filepath=examples/axum.ipynb) | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/wiseaidotdev/gems/blob/main/examples/axum.ipynb) |

## 🤝 Contributing

Contributions and feedback are welcome! If you'd like to contribute, report an issue, or suggest an enhancement, please engage with the project on [GitHub](https://github.com/kevin-rs/gems). Your contributions help improve this crate for the community.
Contributions and feedback are welcome! If you'd like to contribute, report an issue, or suggest an enhancement, please engage with the project on [GitHub](https://github.com/wiseaidotdev/gems). Your contributions help improve this crate for the community.

## 📄 License

This project is licensed under the [MIT License](LICENSE).

© 2026 Wise AI Foundation
2 changes: 1 addition & 1 deletion examples/axum/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,4 +102,4 @@ This endpoint embeds content based on the input text.

## License

📜 This project is licensed under the [MIT](LICENSE) license - see the [LICENSE](LICENSE) file for details.
📜 This project is licensed under the [MIT](LICENSE) license - see the [LICENSE](LICENSE) file for details.
Loading
Loading