-
Notifications
You must be signed in to change notification settings - Fork 4
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
Feat/render #45
Conversation
src/apis/generations.ts
Outdated
@@ -47,6 +47,20 @@ type PromptsResponse = Record<string, any> & APIResponseType; | |||
|
|||
export class Prompt extends ApiResource { | |||
completions: PromptCompletions = new PromptCompletions(this.client); | |||
|
|||
render( | |||
_body: PromptsCreateNonStreaming, |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
Title: prompt/render
Description:
Motivation:
Enable the users to use the /render endpoint
Related Issues:
#44