You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
***ci:** move github release logic to github app ([#1155](https://github.com/openai/openai-python/issues/1155)) ([67cfac2](https://github.com/openai/openai-python/commit/67cfac2564dfb718da0465e34b90ac6928fa962a))
20
+
***client:** use correct accept headers for binary data ([#1161](https://github.com/openai/openai-python/issues/1161)) ([e536437](https://github.com/openai/openai-python/commit/e536437ae0b2cb0ddf2d74618722005d37403f32))
Copy file name to clipboardExpand all lines: docs/index.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ Welcome to Marsh's totally unofficial and totally unsupported documentation for
10
10
11
11
## About these docs
12
12
13
-
These docs are officially unofficial and unsupported, but you're welcome to use and improve them until OpenAI brings up their own (1) or they ask me to take them down.
13
+
These docs are officially unofficial, but you're welcome to use and improve them until OpenAI brings up their own (1) or they ask me to take them down.
14
14
{ .annotate }
15
15
16
16
1. I'll likely decommission this site when OpenAI [publishes their own Python API reference](https://community.openai.com/t/where-is-the-documentation-for-the-python-openai-sdk/583643).
@@ -30,4 +30,4 @@ That said, I use these docs myself and thus intend to keep them (mostly) current
30
30
31
31
1. That means you might encounter inaccuracies or you might not find what you think should be here. In either case, you should refer to [openai/openai-python](https://github.com/openai/openai-python) as the source of truth.
"""Snippets in this docstring are ingested by other documentation (including library docstrings) during the MkDocs build process.
2
+
3
+
# --8<-- [start:audio]
4
+
The `audio` module provides classes for handling various audio processing operations, including transcription of audio to text, translation of spoken content, and speech synthesis.
5
+
6
+
This module supports synchronous and asynchronous operations, and offers interfaces for direct interaction with audio data, as well as handling of raw and streaming responses. Designed for applications that require audio input processing like automated transcription services, real-time translation of spoken language, and generating spoken content from text.
7
+
# --8<-- [end:audio]
8
+
9
+
# --8<-- [start:beta]
10
+
The `beta` modules provides a unified interface for accessing beta features of the API, encapsulating synchronous and asynchronous access to resources in beta.
11
+
12
+
The module aggregates the beta functionalities related to features like yet considered generally available (GA), offering a simplified entry point for interacting with these resources. It is designed to facilitate easy access to the cutting-edge features still under development, enabling developers to experiment with and leverage new capabilities before they become GA.
13
+
# --8<-- [end:beta]
14
+
15
+
# --8<-- [start:chat]
16
+
The `chat` module provides classes for creating and managing chat sessions that leverage OpenAI's language models to generate conversational responses.
17
+
18
+
The module supports both synchronous and asynchronous operations, offering interfaces for direct interaction with the completion endpoints tailored for chat applications. Designed for developers looking to integrate AI-powered chat functionalities into their applicationsand features like raw and streaming response handling for more flexible integration.
19
+
# --8<-- [end:chat]
20
+
21
+
# --8<-- [start:chat_completions]
22
+
The `chat.completions` module provides access to the chat completions endpoint of the OpenAI API. It supports
23
+
the latest models including `gpt-4`, `gpt-4-turbo-preview`, `gpt-4-vision-preview`, `gpt-4-32k`, `gpt-3.5-turbo`,
24
+
and their respective dated model releases, along with fine-tuned versions of `gpt-3.5-turbo`.
25
+
26
+
This module interacts with the `/v1/chat/completions` endpoint and replaces the the legacy [`resources.completions`][src.openai.resources.completions] module. You're *strongly encouraged* to migrate existing applications that use the legacy `resources.completions` module to this one before the expected [deprecation](https://platform.openai.com/docs/deprecations) of the `/v1/completions` endpoint.
27
+
# --8<-- [end:chat_completions]
28
+
29
+
# --8<-- [start:completions]
30
+
The `completions` module provides access to the legacy completions endpoint of the OpenAI API. Use the [`chat.completions`][src.openai.resources.chat.completions] module instead for new applications.
31
+
32
+
This module interacts with a [legacy](https://platform.openai.com/docs/deprecations) endpoint, `/v1/completions`, indicating that the endpoint no longer receives updates and is expected to be deprecated. This module is for use only in applications that require compatibility with the legacy endpoint and should **not** be used for new projects.
33
+
34
+
You're *strongly encouraged* to migrate existing applications to the [`chat.completions`][src.openai.resources.chat.completions] module—which interacts with the current (non-legacy) `/v1/chat/completions` endpoint—prior to the [deprecation](https://platform.openai.com/docs/deprecations) of the `/v1/completions` endpoint.
35
+
# --8<-- [end:completions]
36
+
37
+
# --8<-- [start:embeddings]
38
+
The `embeddings` module provides classes for creating embeddings from text inputs using OpenAI's models and supports both synchronous and asynchronous operations as well as the handling of raw responses and streaming response capabilities.
39
+
40
+
The module is appropriate for use in applications that require semantic analysis of text, like similarity searches, text clustering, and other natural language processing tasks that can benefit from high-dimensional vector representations of text.
41
+
# --8<-- [end:embeddings]
42
+
43
+
# --8<-- [start:files]
44
+
The `files` module provides classes for uploading, retrieving, listing, and deleting files used across various OpenAI API endpoints.
45
+
46
+
The module supports both synchronous and asynchronous operations, along with handling of raw responses and streaming of file content. Designed for use cases that involve managing large datasets or files for purposes like fine-tuning models or using assistants, this module facilitates the efficient handling of file-related operations on the OpenAI platform.
47
+
# --8<-- [end:files]
48
+
49
+
# --8<-- [start:fine_tuning]
50
+
The `fine_tuning` module provides classes for handling fine-tuning operations, including the initiation, management, and retrieval of fine-tuning jobs.
51
+
52
+
The module supports synchronous and asynchronous operations, offering interfaces for working with jobs directly, as well as with raw or streaming responses. Designed for use in applications requiring custom model training on specific datasets to improve model performance for tailored tasks.
53
+
# --8<-- [end:fine_tuning]
54
+
55
+
# --8<-- [start:fine_tuning_jobs]
56
+
The `jobs` module provides synchronous and asynchronous access to fine-tuning job resources and enables you to create, retrieve, list, and cancel fine-tuning jobs and list the events associated with them.
57
+
58
+
Fine-tuning jobs allow you to customize pre-trained models with your own datasets, optimizing performance for specific tasks or improving understanding of particular data types. The classes in the `jobs` module includes methods for managing fine-tuning jobs, like creating a new job, fetching details of an existing job, listing all jobs, canceling a job, and listing events associated with a job.
59
+
# --8<-- [end:fine_tuning_jobs]
60
+
61
+
# --8<-- [start:images]
62
+
The `image` module provides functionality for creating variations of images, editing images based on textual prompts, and generating new images from prompts using specified models.
63
+
64
+
The module supports both synchronous and asynchronous operations, with capabilities for handling raw responses and streaming. Suitable for applications requiring dynamic image generation or modification through the OpenAI API, this module leverages models like DALL-E to interpret text prompts into visual content.
65
+
# --8<-- [end:images]
66
+
67
+
# --8<-- [start:models]
68
+
The `models` module facilitates the retrieval, listing, and deletion of models on the OpenAI platform and supports both synchronous and asynchronous operations.
69
+
70
+
The module enables developers to interact with models, providing functionalities like fetching detailed information about a specific model, listing all available models, and deleting fine-tuned models.
71
+
# --8<-- [end:models]
72
+
73
+
# --8<-- [start:moderations]
74
+
The `moderations` module provides functionality to submit text for moderation to determine whether it violates OpenAI's content policy.
75
+
76
+
Moderation is particularly useful for developers looking to ensure the content generated or processed by their applications adheres to OpenAI's content policy. By leveraging the content moderation models provided by OpenAI, applications can automatically classify and filter out text that might be considered harmful or inappropriate.
77
+
# --8<-- [end:moderations]
78
+
79
+
# --8<-- [start:assistants]
80
+
The `assistants` module offers functionalities to create, retrieve, update, list, and delete Assistants. Assistants are AI models configured to perform specific tasks based on instructions, files, and other parameters.
81
+
# --8<-- [end:assistants]
82
+
83
+
# --8<-- [start:threads]
84
+
The `threads` module facilitates the creation, retrieval, update, deletion, and execution of Threads. Threads represent a series of messages or interactions with an assistant and support a conversational context or a sequence of operations.
0 commit comments