Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V1 #677

Merged
merged 60 commits into from
Nov 6, 2023
Merged

V1 #677

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
a8113b6
cleanup
RobertCraigie Sep 29, 2023
116db59
v1.0.0-beta.1
RobertCraigie Sep 29, 2023
e58d6f8
docs: add basic manual azure example
RobertCraigie Oct 4, 2023
690efd3
docs: use chat completions instead of completions for demo example
RobertCraigie Oct 5, 2023
6713376
test: rename `API_BASE_URL` to `TEST_API_BASE_URL`
stainless-bot Oct 2, 2023
7fefa80
feat(client): handle retry-after header with a date format
stainless-bot Oct 2, 2023
645766c
feat(api): remove `content_filter` stop_reason and update documentation
stainless-bot Oct 5, 2023
1e393c6
refactor(cli): rename internal types for improved auto complete
stainless-bot Oct 6, 2023
d8274ad
feat(client): add forwards-compatible pydantic methods
stainless-bot Oct 9, 2023
8e99af9
feat(api): move `n_epochs` under `hyperparameters`
stainless-bot Oct 10, 2023
633f939
feat(client): add support for passing in a httpx client
stainless-bot Oct 11, 2023
86841a0
chore: update README
stainless-bot Oct 11, 2023
8d35ba8
feat(cli): use http/2 if h2 is available
stainless-bot Oct 11, 2023
a985c07
chore(docs): remove trailing spaces
stainless-bot Oct 12, 2023
cda08c6
feat(client): add logging setup
stainless-bot Oct 12, 2023
d928a52
chore(internal): minor updates
RobertCraigie Oct 12, 2023
faeb448
v1.0.0-beta.2
RobertCraigie Oct 12, 2023
3355f03
docs: use chat completions instead of completions for demo example
RobertCraigie Oct 5, 2023
3815517
chore: add case insensitive get header function
stainless-bot Oct 13, 2023
7b4c5f7
fix(client): correctly handle errors during streaming
stainless-bot Oct 13, 2023
5ef20d7
fix(streaming): add additional overload for ambiguous stream param
stainless-bot Oct 13, 2023
a947b4d
chore(internal): enable lint rule
stainless-bot Oct 13, 2023
13252c4
chore(internal): cleanup some redundant code
stainless-bot Oct 13, 2023
4267921
fix(client): accept io.IOBase instances in file params
stainless-bot Oct 16, 2023
b4bf658
docs: improve error message for invalid file param type
RobertCraigie Oct 17, 2023
11b3d7f
1.0.0-beta.3
RobertCraigie Oct 17, 2023
aef2c55
chore(internal): migrate from Poetry to Rye
stainless-bot Oct 17, 2023
120f2b1
feat(cli): add `tools fine_tunes.prepare_data`
stainless-bot Oct 17, 2023
1b6d908
feat(client): support passing httpx.URL instances to base_url
stainless-bot Oct 17, 2023
0010bef
chore(internal): fix some latent type errors
stainless-bot Oct 17, 2023
316b6df
feat(api): add embeddings encoding_format
stainless-bot Oct 19, 2023
93fe711
feat: use numpy for faster embeddings decoding
stainless-bot Oct 20, 2023
13261d3
chore(internal): bump pyright
stainless-bot Oct 20, 2023
34e0d94
chore(internal): bump deps
RobertCraigie Oct 24, 2023
3443910
feat(client): improve file upload types
stainless-bot Oct 24, 2023
7ac98a5
feat(client): adjust retry behavior to be exponential backoff
stainless-bot Oct 24, 2023
34f6412
ci: add lint workflow
stainless-bot Oct 24, 2023
3e3546f
docs: improve to dictionary example
stainless-bot Oct 24, 2023
9f213d4
ci(lint): run ruff too
stainless-bot Oct 26, 2023
ee0e511
chore(internal): require explicit overrides
stainless-bot Oct 26, 2023
e7dc3b2
feat(client): support accessing raw response objects
stainless-bot Oct 26, 2023
65efd0c
test(qs): add an additional test case for array brackets
stainless-bot Oct 27, 2023
ddbbd7a
feat(client): add dedicated Azure client
stainless-bot Oct 27, 2023
4b66ff4
feat(package): add classifiers
stainless-bot Oct 27, 2023
471130d
docs(readme): add Azure guide
RobertCraigie Oct 27, 2023
1b616bb
1.0.0-rc1
RobertCraigie Oct 27, 2023
1c9bb0d
docs: small cleanup
stainless-bot Oct 30, 2023
6a06eb2
feat(github): include a devcontainer setup
stainless-bot Oct 31, 2023
0fd701f
chore: improve type names
stainless-bot Nov 2, 2023
8c5cb64
feat(client): allow binary returns
stainless-bot Nov 3, 2023
401b47b
feat(client): support passing BaseModels to request params at runtime
stainless-bot Nov 3, 2023
e57558f
fix(binaries): don't synchronously block in astream_to_file
stainless-bot Nov 3, 2023
2d1fd0c
1.0.0-rc2
RobertCraigie Nov 3, 2023
479732f
chore(internal): remove unused int/float conversion
stainless-bot Nov 3, 2023
947749e
docs(readme): improve example snippets
stainless-bot Nov 5, 2023
56ba2f1
fix: prevent TypeError in Python 3.8 (ABC is not subscriptable)
stainless-bot Nov 6, 2023
12ecc47
1.0.0-rc3
rattrayalex Nov 6, 2023
7dddaa3
docs: update streaming example
stainless-bot Nov 6, 2023
be5c76f
docs(readme): update opening
RobertCraigie Nov 6, 2023
4dac138
v1.0.0
RobertCraigie Nov 6, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
27 changes: 27 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# syntax=docker/dockerfile:1
FROM debian:bookworm-slim

RUN apt-get update && apt-get install -y \
libxkbcommon0 \
ca-certificates \
make \
curl \
git \
unzip \
libc++1 \
vim \
termcap \
&& apt-get clean autoclean

RUN curl -sSf https://rye-up.com/get | RYE_VERSION="0.15.2" RYE_INSTALL_OPTION="--yes" bash
ENV PATH=/root/.rye/shims:$PATH

WORKDIR /workspace

COPY README.md .python-version pyproject.toml requirements.lock requirements-dev.lock /workspace/

RUN rye sync --all-features

COPY . /workspace

CMD ["rye", "shell"]
20 changes: 20 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/debian
{
"name": "Debian",
"build": {
"dockerfile": "Dockerfile"
}

// Features to add to the dev container. More info: https://containers.dev/features.
// "features": {},

// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],

// Configure tool-specific properties.
// "customizations": {},

// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
}
56 changes: 0 additions & 56 deletions .github/ISSUE_TEMPLATE/bug_report.yml

This file was deleted.

7 changes: 0 additions & 7 deletions .github/ISSUE_TEMPLATE/config.yml

This file was deleted.

20 changes: 0 additions & 20 deletions .github/ISSUE_TEMPLATE/feature_request.yml

This file was deleted.

41 changes: 41 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
lint:
name: lint
runs-on: ubuntu-latest
if: github.repository == 'openai/openai-python'

steps:
- uses: actions/checkout@v3

- name: Install Rye
run: |
curl -sSf https://rye-up.com/get | bash
echo "$HOME/.rye/shims" >> $GITHUB_PATH
env:
RYE_VERSION: 0.15.2
RYE_INSTALL_OPTION: "--yes"

- name: Install dependencies
run: |
rye sync --all-features

- name: Run ruff
run: |
rye run check:ruff

- name: Run type checking
run: |
rye run typecheck

- name: Ensure importable
run: |
rye run python -c 'import openai'
24 changes: 13 additions & 11 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
*.egg-info
.idea
.python-version
/public/dist
.vscode
_dev

__pycache__
build
*.egg
.vscode/settings.json
.ipynb_checkpoints
.vscode/launch.json
examples/azure/training.jsonl
examples/azure/validation.jsonl
.mypy_cache

dist

.venv
.idea

.env
.envrc
codegen.log
1 change: 1 addition & 0 deletions .python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.9.18
1 change: 1 addition & 0 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
configured_endpoints: 28