This repository has been archived by the owner on Jun 6, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Added response_format
capabilities to chat completion request
#402
Open
PrimosK
wants to merge
5
commits into
TheoKanning:main
Choose a base branch
from
PrimosK:388-chat-completition-response-format
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Added response_format
capabilities to chat completion request
#402
PrimosK
wants to merge
5
commits into
TheoKanning:main
from
PrimosK:388-chat-completition-response-format
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…on for better overview of what's there and what's missing. (TheoKanning#388)
PrimosK
changed the title
Added
Added Nov 14, 2023
response_format
capabilities for chat completion response formatresponse_format
capabilities to chat completion request
Would also love to see the support for 'seed' in the request (as the latest OpenAI adds support for adding a random generator seed) |
fallbackwjj
added a commit
to fallbackwjj/openai-java
that referenced
this pull request
Nov 22, 2023
LTMenezes
approved these changes
Nov 24, 2023
I wonder when this PR code will be released. |
I also need this PR merged, let me know if I can help with anything for the review. |
Also interested in this, are there any updates? |
We need this module very much, please merge this PR as soon as possible 😭 |
Hey @TheoKanning , is there anything we can do to speed up this process? |
alternative way
|
I just used this way class ChatCompletionJsonRequest(target: ChatCompletionRequest) : ChatCompletionRequest(
target.model, target.messages, target.temperature, target.topP, target.n, target.stream, target.stop,
target.maxTokens, target.presencePenalty, target.frequencyPenalty, target.logitBias, target.user, target.functions, target.functionCall
) {
@JsonProperty("response_format")
val responseFormat: ResponseFormat = ResponseFormat("json_object")
}
data class ResponseFormat(val type: String) |
Ran-Mewo
added a commit
to Ran-Mewo/openai-java
that referenced
this pull request
Jan 3, 2024
… completion request by @PrimosK
@TheoKanning please let us know how we can help to speed it up. Might be interesting to look into having some community admin that could approve those PR and merge them. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Added response_format capabilities including integration test.