Skip to content

Commit

Permalink
README cleanups (#4)
Browse files Browse the repository at this point in the history
* README cleanups

* Add build status

* Add crate badge

* Dont run double tests on prs
  • Loading branch information
deontologician authored Dec 6, 2020
1 parent 3383637 commit 697acd0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
on: [push, pull_request]
on:
pull_request:
push:
branches:
- main

name: Continuous Integration
name: CI

jobs:
check:
Expand Down
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,22 @@
# openai-api-rust
![docs](https://docs.rs/openai-api/badge.svg)
[![Crates.io](https://img.shields.io/crates/v/openai-api.svg)](https://crates.io/crates/openai-api)
![build](https://github.com/deontologician/openai-api-rust/workflows/Continuous%20Integration/badge.svg)

A simple rust client for OpenAI API.

Has a few conveniences, but is mostly at the level of the API itself.

# Installation

```
$ cargo add openai-api-rust
$ cargo add openai-api
```

# Quickstart

```rust
use openai_api::{api::CompletionArgs, OpenAIClient};
use openai_api::OpenAIClient;

#[tokio::main]
async fn main() {
Expand Down

0 comments on commit 697acd0

Please sign in to comment.