Skip to content

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

Merged
johanste merged 7 commits into
clientfrom
add-more-apis
Jun 22, 2023
Merged

Add edit, audio, and moderation APIs to client abstraction#5
johanste merged 7 commits into
clientfrom
add-more-apis

Conversation

@kristapratico
Copy link
Copy Markdown
Collaborator

No description provided.

Comment thread openai/client.py
top_p: float = ...,
**kwargs,
):
self._populate_args(
Copy link
Copy Markdown
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.

Comment thread openai/client.py Outdated
Comment thread openai/client.py Outdated
Comment thread openai/client.py Outdated
Comment thread openai/client.py Outdated
Comment thread openai/client.py Outdated
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