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

Feat/render #45

Merged
merged 4 commits into from
Mar 23, 2024
Merged

Feat/render #45

merged 4 commits into from
Mar 23, 2024

Conversation

csgulati09
Copy link
Contributor

Title: prompt/render

Description:

  • Adding class to support prompt.render.create()

Motivation:
Enable the users to use the /render endpoint

Related Issues:
#44

@dosubot dosubot bot added the size:XXL This PR changes 1000+ lines, ignoring generated files. label Mar 21, 2024
@csgulati09 csgulati09 requested a review from VisargD March 21, 2024 12:24
@csgulati09 csgulati09 self-assigned this Mar 21, 2024
@dosubot dosubot bot added size:S This PR changes 10-29 lines, ignoring generated files. and removed size:XXL This PR changes 1000+ lines, ignoring generated files. labels Mar 22, 2024
@@ -47,6 +47,20 @@ type PromptsResponse = Record<string, any> & APIResponseType;

export class Prompt extends ApiResource {
completions: PromptCompletions = new PromptCompletions(this.client);

render(
_body: PromptsCreateNonStreaming,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should we use PromptBodyBase instead of PromptsCreateNonStreaming? Using the current one will give errors if someone sends anything apart from promptID and variables.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

PromptsCreateNonStreaming extends PromptBodyBase which extends ModelParams
So it will be able to cover everything, I suppose

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Mar 23, 2024
@VisargD VisargD merged commit ff6ac1c into main Mar 23, 2024
1 check passed
@VisargD VisargD deleted the feat/render branch March 23, 2024 11:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm This PR has been approved by a maintainer size:S This PR changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants