Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 0 additions & 38 deletions .github/workflows/create-releases.yml

This file was deleted.

8 changes: 6 additions & 2 deletions .github/workflows/publish-pypi.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
# workflow for re-running publishing to PyPI in case it fails for some reason
# you can run this workflow by navigating to https://www.github.com/juliuslipp/mixedbread-python/actions/workflows/publish-pypi.yml
# This workflow is triggered when a GitHub release is created.
# It can also be run manually to re-publish to PyPI in case it failed for some reason.
# You can run this workflow by navigating to https://www.github.com/mixedbread-ai/mixedbread-python/actions/workflows/publish-pypi.yml
name: Publish PyPI
on:
workflow_dispatch:

release:
types: [published]

jobs:
publish:
name: publish
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/release-doctor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
release_doctor:
name: release doctor
runs-on: ubuntu-latest
if: github.repository == 'juliuslipp/mixedbread-python' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || startsWith(github.head_ref, 'release-please') || github.head_ref == 'next')
if: github.repository == 'mixedbread-ai/mixedbread-python' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || startsWith(github.head_ref, 'release-please') || github.head_ref == 'next')

steps:
- uses: actions/checkout@v4
Expand All @@ -18,5 +18,4 @@ jobs:
run: |
bash ./bin/check-release-environment
env:
STAINLESS_API_KEY: ${{ secrets.STAINLESS_API_KEY }}
PYPI_TOKEN: ${{ secrets.MIXEDBREAD_PYPI_TOKEN || secrets.PYPI_TOKEN }}
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ If you’d like to use the repository from source, you can either install from g
To install via git:

```sh
$ pip install git+ssh://git@github.com/juliuslipp/mixedbread-python.git
$ pip install git+ssh://git@github.com/mixedbread-ai/mixedbread-python.git
```

Alternatively, you can build from source and install the wheel file:
Expand Down Expand Up @@ -121,7 +121,7 @@ the changes aren't made through the automated pipeline, you may want to make rel

### Publish with a GitHub workflow

You can release to package managers by using [the `Publish PyPI` GitHub action](https://www.github.com/juliuslipp/mixedbread-python/actions/workflows/publish-pypi.yml). This requires a setup organization or repository secret to be set up.
You can release to package managers by using [the `Publish PyPI` GitHub action](https://www.github.com/mixedbread-ai/mixedbread-python/actions/workflows/publish-pypi.yml). This requires a setup organization or repository secret to be set up.

### Publish manually

Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ The REST API documentation can be found on [mixedbread.ai](https://mixedbread.ai

```sh
# install from the production repo
pip install git+ssh://git@github.com/juliuslipp/mixedbread-python.git
pip install git+ssh://git@github.com/mixedbread-ai/mixedbread-python.git
```

> [!NOTE]
Expand Down Expand Up @@ -206,9 +206,9 @@ vector_store = response.parse() # get the object that `vector_stores.create()`
print(vector_store.id)
```

These methods return an [`APIResponse`](https://github.com/juliuslipp/mixedbread-python/tree/main/src/mixedbread/_response.py) object.
These methods return an [`APIResponse`](https://github.com/mixedbread-ai/mixedbread-python/tree/main/src/mixedbread/_response.py) object.

The async client returns an [`AsyncAPIResponse`](https://github.com/juliuslipp/mixedbread-python/tree/main/src/mixedbread/_response.py) with the same structure, the only difference being `await`able methods for reading the response content.
The async client returns an [`AsyncAPIResponse`](https://github.com/mixedbread-ai/mixedbread-python/tree/main/src/mixedbread/_response.py) with the same structure, the only difference being `await`able methods for reading the response content.

#### `.with_streaming_response`

Expand Down Expand Up @@ -313,7 +313,7 @@ This package generally follows [SemVer](https://semver.org/spec/v2.0.0.html) con

We take backwards-compatibility seriously and work hard to ensure you can rely on a smooth upgrade experience.

We are keen for your feedback; please open an [issue](https://www.github.com/juliuslipp/mixedbread-python/issues) with questions, bugs, or suggestions.
We are keen for your feedback; please open an [issue](https://www.github.com/mixedbread-ai/mixedbread-python/issues) with questions, bugs, or suggestions.

### Determining the installed version

Expand Down
4 changes: 0 additions & 4 deletions bin/check-release-environment
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@

errors=()

if [ -z "${STAINLESS_API_KEY}" ]; then
errors+=("The STAINLESS_API_KEY secret has not been set. Please contact Stainless for an API key & set it in your organization secrets on GitHub.")
fi

if [ -z "${PYPI_TOKEN}" ]; then
errors+=("The MIXEDBREAD_PYPI_TOKEN secret has not been set. Please set it in either this repository's secrets or your organization secrets.")
fi
Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ classifiers = [
]

[project.urls]
Homepage = "https://github.com/juliuslipp/mixedbread-python"
Repository = "https://github.com/juliuslipp/mixedbread-python"
Homepage = "https://github.com/mixedbread-ai/mixedbread-python"
Repository = "https://github.com/mixedbread-ai/mixedbread-python"



Expand Down Expand Up @@ -122,7 +122,7 @@ path = "README.md"
[[tool.hatch.metadata.hooks.fancy-pypi-readme.substitutions]]
# replace relative links with absolute links
pattern = '\[(.+?)\]\(((?!https?://)\S+?)\)'
replacement = '[\1](https://github.com/juliuslipp/mixedbread-python/tree/main/\g<2>)'
replacement = '[\1](https://github.com/mixedbread-ai/mixedbread-python/tree/main/\g<2>)'

[tool.pytest.ini_options]
testpaths = ["tests"]
Expand Down
8 changes: 4 additions & 4 deletions src/mixedbread/resources/document_ai/document_ai.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def with_raw_response(self) -> DocumentAIResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return the
the raw response object instead of the parsed content.

For more information, see https://www.github.com/juliuslipp/mixedbread-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/mixedbread-ai/mixedbread-python#accessing-raw-response-data-eg-headers
"""
return DocumentAIResourceWithRawResponse(self)

Expand All @@ -36,7 +36,7 @@ def with_streaming_response(self) -> DocumentAIResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.

For more information, see https://www.github.com/juliuslipp/mixedbread-python#with_streaming_response
For more information, see https://www.github.com/mixedbread-ai/mixedbread-python#with_streaming_response
"""
return DocumentAIResourceWithStreamingResponse(self)

Expand All @@ -52,7 +52,7 @@ def with_raw_response(self) -> AsyncDocumentAIResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return the
the raw response object instead of the parsed content.

For more information, see https://www.github.com/juliuslipp/mixedbread-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/mixedbread-ai/mixedbread-python#accessing-raw-response-data-eg-headers
"""
return AsyncDocumentAIResourceWithRawResponse(self)

Expand All @@ -61,7 +61,7 @@ def with_streaming_response(self) -> AsyncDocumentAIResourceWithStreamingRespons
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.

For more information, see https://www.github.com/juliuslipp/mixedbread-python#with_streaming_response
For more information, see https://www.github.com/mixedbread-ai/mixedbread-python#with_streaming_response
"""
return AsyncDocumentAIResourceWithStreamingResponse(self)

Expand Down
8 changes: 4 additions & 4 deletions src/mixedbread/resources/document_ai/parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def with_raw_response(self) -> ParseResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return the
the raw response object instead of the parsed content.

For more information, see https://www.github.com/juliuslipp/mixedbread-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/mixedbread-ai/mixedbread-python#accessing-raw-response-data-eg-headers
"""
return ParseResourceWithRawResponse(self)

Expand All @@ -44,7 +44,7 @@ def with_streaming_response(self) -> ParseResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.

For more information, see https://www.github.com/juliuslipp/mixedbread-python#with_streaming_response
For more information, see https://www.github.com/mixedbread-ai/mixedbread-python#with_streaming_response
"""
return ParseResourceWithStreamingResponse(self)

Expand Down Expand Up @@ -160,7 +160,7 @@ def with_raw_response(self) -> AsyncParseResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return the
the raw response object instead of the parsed content.

For more information, see https://www.github.com/juliuslipp/mixedbread-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/mixedbread-ai/mixedbread-python#accessing-raw-response-data-eg-headers
"""
return AsyncParseResourceWithRawResponse(self)

Expand All @@ -169,7 +169,7 @@ def with_streaming_response(self) -> AsyncParseResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.

For more information, see https://www.github.com/juliuslipp/mixedbread-python#with_streaming_response
For more information, see https://www.github.com/mixedbread-ai/mixedbread-python#with_streaming_response
"""
return AsyncParseResourceWithStreamingResponse(self)

Expand Down
8 changes: 4 additions & 4 deletions src/mixedbread/resources/embeddings.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def with_raw_response(self) -> EmbeddingsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return the
the raw response object instead of the parsed content.

For more information, see https://www.github.com/juliuslipp/mixedbread-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/mixedbread-ai/mixedbread-python#accessing-raw-response-data-eg-headers
"""
return EmbeddingsResourceWithRawResponse(self)

Expand All @@ -43,7 +43,7 @@ def with_streaming_response(self) -> EmbeddingsResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.

For more information, see https://www.github.com/juliuslipp/mixedbread-python#with_streaming_response
For more information, see https://www.github.com/mixedbread-ai/mixedbread-python#with_streaming_response
"""
return EmbeddingsResourceWithStreamingResponse(self)

Expand Down Expand Up @@ -123,7 +123,7 @@ def with_raw_response(self) -> AsyncEmbeddingsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return the
the raw response object instead of the parsed content.

For more information, see https://www.github.com/juliuslipp/mixedbread-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/mixedbread-ai/mixedbread-python#accessing-raw-response-data-eg-headers
"""
return AsyncEmbeddingsResourceWithRawResponse(self)

Expand All @@ -132,7 +132,7 @@ def with_streaming_response(self) -> AsyncEmbeddingsResourceWithStreamingRespons
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.

For more information, see https://www.github.com/juliuslipp/mixedbread-python#with_streaming_response
For more information, see https://www.github.com/mixedbread-ai/mixedbread-python#with_streaming_response
"""
return AsyncEmbeddingsResourceWithStreamingResponse(self)

Expand Down
8 changes: 4 additions & 4 deletions src/mixedbread/resources/files.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def with_raw_response(self) -> FilesResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return the
the raw response object instead of the parsed content.

For more information, see https://www.github.com/juliuslipp/mixedbread-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/mixedbread-ai/mixedbread-python#accessing-raw-response-data-eg-headers
"""
return FilesResourceWithRawResponse(self)

Expand All @@ -54,7 +54,7 @@ def with_streaming_response(self) -> FilesResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.

For more information, see https://www.github.com/juliuslipp/mixedbread-python#with_streaming_response
For more information, see https://www.github.com/mixedbread-ai/mixedbread-python#with_streaming_response
"""
return FilesResourceWithStreamingResponse(self)

Expand Down Expand Up @@ -325,7 +325,7 @@ def with_raw_response(self) -> AsyncFilesResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return the
the raw response object instead of the parsed content.

For more information, see https://www.github.com/juliuslipp/mixedbread-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/mixedbread-ai/mixedbread-python#accessing-raw-response-data-eg-headers
"""
return AsyncFilesResourceWithRawResponse(self)

Expand All @@ -334,7 +334,7 @@ def with_streaming_response(self) -> AsyncFilesResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.

For more information, see https://www.github.com/juliuslipp/mixedbread-python#with_streaming_response
For more information, see https://www.github.com/mixedbread-ai/mixedbread-python#with_streaming_response
"""
return AsyncFilesResourceWithStreamingResponse(self)

Expand Down
8 changes: 4 additions & 4 deletions src/mixedbread/resources/jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def with_raw_response(self) -> JobsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return the
the raw response object instead of the parsed content.

For more information, see https://www.github.com/juliuslipp/mixedbread-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/mixedbread-ai/mixedbread-python#accessing-raw-response-data-eg-headers
"""
return JobsResourceWithRawResponse(self)

Expand All @@ -36,7 +36,7 @@ def with_streaming_response(self) -> JobsResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.

For more information, see https://www.github.com/juliuslipp/mixedbread-python#with_streaming_response
For more information, see https://www.github.com/mixedbread-ai/mixedbread-python#with_streaming_response
"""
return JobsResourceWithStreamingResponse(self)

Expand Down Expand Up @@ -123,7 +123,7 @@ def with_raw_response(self) -> AsyncJobsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return the
the raw response object instead of the parsed content.

For more information, see https://www.github.com/juliuslipp/mixedbread-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/mixedbread-ai/mixedbread-python#accessing-raw-response-data-eg-headers
"""
return AsyncJobsResourceWithRawResponse(self)

Expand All @@ -132,7 +132,7 @@ def with_streaming_response(self) -> AsyncJobsResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.

For more information, see https://www.github.com/juliuslipp/mixedbread-python#with_streaming_response
For more information, see https://www.github.com/mixedbread-ai/mixedbread-python#with_streaming_response
"""
return AsyncJobsResourceWithStreamingResponse(self)

Expand Down
8 changes: 4 additions & 4 deletions src/mixedbread/resources/rerankings.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def with_raw_response(self) -> RerankingsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return the
the raw response object instead of the parsed content.

For more information, see https://www.github.com/juliuslipp/mixedbread-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/mixedbread-ai/mixedbread-python#accessing-raw-response-data-eg-headers
"""
return RerankingsResourceWithRawResponse(self)

Expand All @@ -42,7 +42,7 @@ def with_streaming_response(self) -> RerankingsResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.

For more information, see https://www.github.com/juliuslipp/mixedbread-python#with_streaming_response
For more information, see https://www.github.com/mixedbread-ai/mixedbread-python#with_streaming_response
"""
return RerankingsResourceWithStreamingResponse(self)

Expand Down Expand Up @@ -115,7 +115,7 @@ def with_raw_response(self) -> AsyncRerankingsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return the
the raw response object instead of the parsed content.

For more information, see https://www.github.com/juliuslipp/mixedbread-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/mixedbread-ai/mixedbread-python#accessing-raw-response-data-eg-headers
"""
return AsyncRerankingsResourceWithRawResponse(self)

Expand All @@ -124,7 +124,7 @@ def with_streaming_response(self) -> AsyncRerankingsResourceWithStreamingRespons
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.

For more information, see https://www.github.com/juliuslipp/mixedbread-python#with_streaming_response
For more information, see https://www.github.com/mixedbread-ai/mixedbread-python#with_streaming_response
"""
return AsyncRerankingsResourceWithStreamingResponse(self)

Expand Down
Loading