README cleanups (#4)
* README cleanups * Add build status * Add crate badge * Dont run double tests on prs
This commit is contained in:
parent
3383637f24
commit
697acd0a0b
8
.github/workflows/rust.yml
vendored
8
.github/workflows/rust.yml
vendored
@ -1,6 +1,10 @@
|
|||||||
on: [push, pull_request]
|
on:
|
||||||
|
pull_request:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
name: Continuous Integration
|
name: CI
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
check:
|
check:
|
||||||
|
@ -1,4 +1,8 @@
|
|||||||
# openai-api-rust
|
# openai-api-rust
|
||||||
|

|
||||||
|
[](https://crates.io/crates/openai-api)
|
||||||
|

|
||||||
|
|
||||||
A simple rust client for OpenAI API.
|
A simple rust client for OpenAI API.
|
||||||
|
|
||||||
Has a few conveniences, but is mostly at the level of the API itself.
|
Has a few conveniences, but is mostly at the level of the API itself.
|
||||||
@ -6,13 +10,13 @@ Has a few conveniences, but is mostly at the level of the API itself.
|
|||||||
# Installation
|
# Installation
|
||||||
|
|
||||||
```
|
```
|
||||||
$ cargo add openai-api-rust
|
$ cargo add openai-api
|
||||||
```
|
```
|
||||||
|
|
||||||
# Quickstart
|
# Quickstart
|
||||||
|
|
||||||
```rust
|
```rust
|
||||||
use openai_api::{api::CompletionArgs, OpenAIClient};
|
use openai_api::OpenAIClient;
|
||||||
|
|
||||||
#[tokio::main]
|
#[tokio::main]
|
||||||
async fn main() {
|
async fn main() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user