Releases: CommandCodeAI/langbase-sdk
Releases · CommandCodeAI/langbase-sdk
langbase v0.2.1
- Readme with examples and docs link
Published on July 27, 2024
langbase v0.2.0
langbase v0.1.0
langbase v0.0.2
Release notes not available.
Published on August 17, 2023
langbase v0.0.1
- Initial package. Let's do this IA.
Published on August 17, 2023
langbase v0.0.0
Release notes not available.
Published on July 18, 2024
1.0.0
All changes documented in the changelog here.
Major Changes
-
📦 NEW: Chat support in both both
generateText()andstreamText() -
👌 IMPROVE: Example updates for Node, browser, Next.js, React, etc.
-
👌 IMPROVE: ⌘ Langbase SDK Docs and API reference for both
generateText()andstreamText() -
‼️ BREAKING:ChoiceNonStreamtype is now renamed toChoiceGenerate. -
‼️ BREAKING:generateText()now doesn't return raw instead all properties are included in the main response.BEFORE
interface GenerateNonStreamResponse { completion: string; raw: { id: string; object: string; created: number; model: string; choices: ChoiceNonStream[]; usage: Usage; system_fingerprint: string | null; }; }
NOW
interface GenerateResponse { completion: string; threadId?: string; id: string; object: string; created: number; model: string; system_fingerprint: string | null; choices: ChoiceGenerate[]; usage: Usage; }
-
‼️ BREAKING:streamText()now returns a threadId and stream as an object instead of returning stream alone.BEFORE
const stream = await pipe.streamText({ messages: [{role: 'user', content: 'Who is an AI Engineer?'}], });
NOW
const {threadId, stream} = await pipe.streamText({ messages: [{role: 'user', content: 'Who is an AI Engineer?'}], });