Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Add edit, audio, and moderation APIs to client abstraction#5

Merged
johanste merged 7 commits intoclientjohanste/openai-python:clientfrom
add-more-apisjohanste/openai-python:add-more-apisCopy head branch name to clipboard
Jun 22, 2023
Merged

Add edit, audio, and moderation APIs to client abstraction#5
johanste merged 7 commits intoclientjohanste/openai-python:clientfrom
add-more-apisjohanste/openai-python:add-more-apisCopy head branch name to clipboard

Conversation

@kristapratico
Copy link
Collaborator

No description provided.

top_p: float = ...,
**kwargs,
):
self._populate_args(
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is a bit of an annoying pattern to have to do this dance. But any "magic" (e.g. decorator) would not be significantly simpler. It might be possible to inspect the decorated function and use annotations to avoid the duplication of signatures across, but that does feel pri3:ish.

openai/client.py Outdated Show resolved Hide resolved
openai/client.py Outdated Show resolved Hide resolved
openai/client.py Outdated Show resolved Hide resolved
openai/client.py Outdated Show resolved Hide resolved
openai/client.py Outdated Show resolved Hide resolved
kristapratico and others added 4 commits June 22, 2023 12:28
Co-authored-by: Johan Stenberg (MSFT) <johan.stenberg@microsoft.com>
Co-authored-by: Johan Stenberg (MSFT) <johan.stenberg@microsoft.com>
Co-authored-by: Johan Stenberg (MSFT) <johan.stenberg@microsoft.com>
Co-authored-by: Johan Stenberg (MSFT) <johan.stenberg@microsoft.com>
@johanste johanste merged commit 8bb7d61 into client Jun 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.