-
Notifications
You must be signed in to change notification settings - Fork 19
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: Change the typing for the LDAIConfig. #688
Conversation
model: aiConfig.config.model?.modelId || 'gpt-4', | ||
messages: aiConfig.prompt || [], | ||
model: aiConfig.model?.modelId || 'gpt-4', | ||
temperature: aiConfig.model?.temperature ?? 0.5, |
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.
Added temperature and maxTokens usage to the bedrock and OpenAI examples.
@launchdarkly/js-sdk-common size report |
@launchdarkly/js-client-sdk size report |
@launchdarkly/js-client-sdk-common size report |
I have not handled the interpolation failure yet. |
🤖 I have created a release *beep* *boop* --- <details><summary>server-sdk-ai: 0.3.0</summary> ## [0.3.0](server-sdk-ai-v0.2.1...server-sdk-ai-v0.3.0) (2024-11-15) ### Features * Change the typing for the LDAIConfig. ([#688](#688)) ([1f3f54a](1f3f54a)) </details> --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Flatten the AI config moving model/prompt to the top level.
Change the LDAIDefaults to match this change.
Remove the generation config type which was the type of the
config
field.Add temperature and maxTokens as optionals to the model config.
Make
modelId
required.Updated the examples to include temperature and maxTokens.
SDK-912