Skip to content

Commit d45244f

Browse files
authored
fix: drop deprecated models && use latest versions available. (#27)
Signed-off-by: wiseaidev <oss@wiseai.dev>
1 parent bab7a63 commit d45244f

28 files changed

Lines changed: 592 additions & 210 deletions

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ version: 2.1
33
aliases:
44
- &rust_container
55
docker:
6-
- image: cimg/rust:1.86.0
6+
- image: cimg/rust:1.89.0
77
jobs:
88
testing:
99
<<: *rust_container

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2025 Kevin RS Foundation
3+
Copyright (c) 2026 Wise AI Foundation
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 37 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
[![docs](https://docs.rs/gems/badge.svg)](https://docs.rs/gems/)
77
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
88

9-
| 🐧 Linux `(Recommended)` | 🪟 Windows |
10-
| :------: | :--------: |
11-
| ![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) |
12-
| [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) |
13-
| `cargo install gems --all-features` | `cargo install gems --all-features` |
14-
| `gems -h` | `gems -h` |
9+
| 🐧 Linux `(Recommended)` | 🪟 Windows |
10+
| :--------------------------------------------------------------------------------------------: | :--------------------------------------------------------------------------------------------: |
11+
| ![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) |
12+
| [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) |
13+
| `cargo install gems --all-features` | `cargo install gems --all-features` |
14+
| `gems -h` | `gems -h` |
1515

1616
</div>
1717

@@ -143,33 +143,30 @@ gems
143143

144144
## 🎨 Options
145145

146-
| Option | Description |
147-
|--------------------------|----------------------------------------------------------|
148-
| `` | TUI mode. |
149-
| `--api-key` | Specify the API key for accessing the Gemini API. |
150-
| `--model` | Specify the model to use for generating content. |
151-
146+
| Option | Description |
147+
| ----------- | ------------------------------------------------- |
148+
| `` | TUI mode. |
149+
| `--api-key` | Specify the API key for accessing the Gemini API. |
150+
| `--model` | Specify the model to use for generating content. |
152151

153152
## 🛠 Subcommands
154153

155-
| Subcommand | Description |
156-
|-------------------------|----------------------------------------------------------|
157-
| `generate` | Generate creative content. |
158-
| `vision` | Analyze an image and generate content from text. |
159-
| `stream` | Stream the generation of content. |
160-
| `imagen` | Generate an image. |
161-
| `vidgen` | Generate a video. |
162-
| `tts` | Text to speech. |
163-
| `count` | Count the number of tokens in a text. |
164-
| `embed` | Embed content into a specified model. |
165-
| `batch` | Batch embed multiple contents. |
166-
| `info` | Get information about the current model. |
167-
| `list` | List available models. |
168-
154+
| Subcommand | Description |
155+
| ---------- | ------------------------------------------------ |
156+
| `generate` | Generate creative content. |
157+
| `vision` | Analyze an image and generate content from text. |
158+
| `stream` | Stream the generation of content. |
159+
| `imagen` | Generate an image. |
160+
| `vidgen` | Generate a video. |
161+
| `tts` | Text to speech. |
162+
| `count` | Count the number of tokens in a text. |
163+
| `embed` | Embed content into a specified model. |
164+
| `batch` | Batch embed multiple contents. |
165+
| `info` | Get information about the current model. |
166+
| `list` | List available models. |
169167

170168
## ✨ Usage as Dependency
171169

172-
173170
1. Add the `gems` crate:
174171

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

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

224221
```sh
225-
git clone https://github.com/kevin-rs/gems.git
222+
git clone https://github.com/wiseaidotdev/gems.git
226223
```
227224

228225
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.
229226

230227
```sh
231228
# Install a Rust toolchain (e.g. nightly):
232229
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain nightly
233-
230+
234231
# Install Jupyter Notebook
235232
pip install notebook
236-
233+
237234
# Install evcxr_jupyter
238235
cargo install evcxr_jupyter
239-
evcxr_jupyter --install
236+
evcxr_jupyter --install
240237
```
241238

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

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

257-
| ID | Example | Open on GitHub | Launch on Binder | Launch on Colab |
258-
|----|---------------|-----------|:-------------|-------------|
259-
| 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) |
260-
| 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) |
261-
| 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) |
254+
| ID | Example | Open on GitHub | Launch on Binder | Launch on Colab |
255+
| --- | ---------- | ----------------------------------------------------------------------------------------------------------------------- | :--------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
256+
| 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) |
257+
| 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) |
258+
| 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) |
262259

263260
## 🤝 Contributing
264261

265-
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.
262+
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.
266263

267264
## 📄 License
268265

269266
This project is licensed under the [MIT License](LICENSE).
267+
268+
© 2026 Wise AI Foundation

examples/axum/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,4 +102,4 @@ This endpoint embeds content based on the input text.
102102

103103
## License
104104

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

0 commit comments

Comments
 (0)