-
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
base: main
Are you sure you want to change the base?
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. |
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.