Replies: 2 comments
-
Replying to your additional question, you can use the |
Beta Was this translation helpful? Give feedback.
0 replies
-
In regard to your original quesiton, check out the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
As I've been exploring the capabilities of your Spring AI library, I've encountered a few challenges. Notably, unlike the implementation seen in Theo Kanning's openai library, there are no directly available methods for engaging with moderation services—where dtos are crafted for the response alongside a choice of moderation models. Are there any intentions to incorporate such functionality in the future? Currently, to achieve this, I find myself manually crafting requests with RestTemplate and constructing response classes.
Additionally, I'm curious if there are any plans to introduce something akin to TikTokenUtils, as found in theokanning.openai's com.theokanning.openai.utils.TikTokensUtil. This utility class is exceptionally handy for calculating the expected token consumption of a prompt before making the request.
Thank you for considering these inquiries.
Beta Was this translation helpful? Give feedback.
All reactions