chore: update launchdarkly-server-sdk-ai-openai from ^0.1.0 to ^0.2.0#18
chore: update launchdarkly-server-sdk-ai-openai from ^0.1.0 to ^0.2.0#18kinyoklion wants to merge 2 commits into
Conversation
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
|
Devin, check if any of the human checklist can be done by you instead. |
- AIConfig renamed to AICompletionConfigDefault for defaults - config() now returns AICompletionConfig directly instead of tuple - Access tracker via config_value.tracker instead of tuple unpacking - Updated openai, langchain, bedrock, and gemini examples Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
|
I checked the human checklist items:
CI ( |
|
Devin, update with the latest changes from main, and if this PR is no longer needed, then close it. |
Summary
Bumps
launchdarkly-server-sdk-ai-openaifrom^0.1.0(which resolves to>=0.1.0, <0.2.0) to^0.2.0(which resolves to>=0.2.0, <0.3.0), picking up the latest release.Updates since last revision
The 0.1→0.2 bump introduced breaking API changes. A second commit updates the affected example scripts:
AIConfig→AICompletionConfigDefault— The class used for specifying defaults was renamed.aiclient.config()return value changed — Previously returned a(config_value, tracker)tuple; now returns a singleAICompletionConfigobject withtrackeras an attribute.tracker.track_*()toconfig_value.tracker.track_*().Files updated:
openai_example.py,langchain_example.py,bedrock_example.py,gemini_example.py(imports, config call, and tracker access in each).Files NOT modified (already using the new API on
main):chat_judge_example.py,chat_observability_example.py,direct_judge_example.py,langgraph_agent_example.py,langgraph_multi_agent_example.py.Review & Testing Checklist for Human
AICompletionConfigDefault/config_value.trackerpattern correctly — the migration was based on module introspection, not official migration docs.poetry install -E openai && poetry run openai-examplewith validLAUNCHDARKLY_SDK_KEYandOPENAI_API_KEYto confirm the OpenAI example works end-to-end. (SDK initialization was tested successfully, but no actual LLM call was made during automated testing.)bedrock-exampleorgemini-example) to confirm the tracker access pattern works at runtime.chat_judge_example,chat_observability_example,direct_judge_example,langgraph_agent_example,langgraph_multi_agent_example) still work — they were already on the new API and were left untouched.Notes
poetry.lockis in.gitignorefor this repo, so no lock file update is included.launchdarkly-server-sdk-ai ^0.16.0,launchdarkly-server-sdk-ai-langchain ^0.3.0) already cover their respective latest releases and were left unchanged.Link to Devin session: https://app.devin.ai/sessions/b0ebe99ff1ec4b09918d6399ac196ee1
Requested by: @kinyoklion