PullRequestInc / go-gpt3

An OpenAI GPT-3 API client enabling Go/Golang programs to interact with the gpt3 APIs.
MIT License
393 stars 65 forks source link

Add streaming chat completions #31

Closed bakks closed 1 year ago

bakks commented 1 year ago

Hey all - I'm just piggybacking on https://github.com/PullRequestInc/go-gpt3/pull/30 and adding streaming support. Recommend that you merge @abatilo 's code first so that my additions are more clear. And please feel free to edit this PR yourself.

bakks commented 1 year ago

Related to #28 and #29

bakks commented 1 year ago

Please merge when ready, i don't have write access

bakks commented 1 year ago

I've rebased and pushed after the merge of https://github.com/PullRequestInc/go-gpt3/pull/30, so this branch should only show my own changes now. Merge when ready.