v1.7.0
Minor Changes
-
e6fb51b: Align SDK with Bold AI API v1 specification
Breaking Changes:
- Video-scoped chat: pass
videoIdin options instead of as separate arg:bold.ai.chat({ videoId, prompt }) Source.timestamp_endandSource.playback_idare now required (were optional)AIUsagenow usesinput_tokens/output_tokens(wasprompt_tokens/completion_tokens/total_tokens)- Removed
TopicInputtype -RecommendationsOptions.topicsnow only acceptsstring[] RecommendationsOptions.contextis nowAIContextMessage[](wasstring)
New:
bold.ai.chat(opts)- Single method for all chat (passvideoIdto scope to a video)bold.ai.recommendations(opts)- AI-powered video recommendations (replacesrecommend)ChatOptions.videoId- Scope chat to a specific videoChatOptions.currentTime- Pass current playback position for context
Deprecated (still work, will be removed in v2):
bold.ai.ask()→ usebold.ai.chat()bold.ai.coach()→ usebold.ai.chat()bold.ai.recommend()→ usebold.ai.recommendations()AskOptionstype → useChatOptionsRecommendOptionstype → useRecommendationsOptionsRecommendResponsetype → useRecommendationsResponse
Type Changes:
- Added
Source.idfield (chunk identifier) - Added
conversation_idandvideo_idtomessage_startevent - Added
conversation_id,recommendations,guidancetomessage_completeevent - Simplified
clarificationevent to includecontentfield - Removed legacy event types:
token,answer,complete
- Video-scoped chat: pass