Skip to content

Set the 'Include Usage' parameter under 'Stream Options' to true in the 'chat-completion-accumulating' example #203

Set the 'Include Usage' parameter under 'Stream Options' to true in the 'chat-completion-accumulating' example

Set the 'Include Usage' parameter under 'Stream Options' to true in the 'chat-completion-accumulating' example #203

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
- next
jobs:
lint:
name: lint
runs-on: ubuntu-latest
if: github.repository == 'openai/openai-go'
steps:
- uses: actions/checkout@v4
- name: Setup go
uses: actions/setup-go@v5
with:
go-version-file: ./go.mod
- name: Run lints
run: ./scripts/lint
test:
name: test
runs-on: ubuntu-latest
if: github.repository == 'openai/openai-go'
steps:
- uses: actions/checkout@v4
- name: Setup go
uses: actions/setup-go@v5
with:
go-version-file: ./go.mod
- name: Bootstrap
run: ./scripts/bootstrap
- name: Run tests
run: ./scripts/test