- Add a new VastAI client to the project. - This client allows users to search for and create GPU instances on VastAI. - It uses the VastAI API to interact with the platform. - Includes functionality for searching offers, getting top offers, and creating instances. Co-authored-by: mahmmoud.hassanein <mahmmoud.hassanein@gmail.com>
31 lines
246 B
Markdown
31 lines
246 B
Markdown
# vastai
|
|
|
|
|
|
|
|
To get started
|
|
|
|
```vlang
|
|
|
|
|
|
import freeflowuniverse.herolib.clients. vastai
|
|
|
|
mut client:= vastai.get()!
|
|
|
|
client...
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
## example heroscript
|
|
|
|
```hero
|
|
!!vastai.configure
|
|
secret: '...'
|
|
host: 'localhost'
|
|
port: 8888
|
|
```
|
|
|
|
|