-
Notifications
You must be signed in to change notification settings - Fork 8
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
Prompt Render Response #53
Conversation
src/apis/generations.ts
Outdated
type PromptRenderResponse = { | ||
success: boolean; | ||
data: { | ||
messages?: Optional<Messages[]>; |
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.
Is Optional required here? All the params are already using ?:
.
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.
Same for other newly added types as well
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.
Yes, because it could be either matching completion or chat completion
Hence keeping them all optional
export type PromptsCreateParams = PromptsCreateNonStreaming | PromptsCreateStreaming | ||
|
||
type PromptsResponse = Record<string, any> & APIResponseType; | ||
|
||
type PromptRenderResponse = { |
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.
stream seems to be missing from this type
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.
response_format is also missing
Title: Response type of Prompt Render
Description:
Motivation:
Reported as bug by user (https://discord.com/channels/1143393887742861333/1145181039648583811/1224288432411639869)
Related Issues:
#52