Skip to content

Releases: CommandCodeAI/langbase-sdk

langbase v0.2.1

06 Nov 06:19
f846ff0

Choose a tag to compare

  • Readme with examples and docs link

Published on July 27, 2024

langbase v0.2.0

06 Nov 06:19
f846ff0

Choose a tag to compare

  • 139e314: export browser readable stream method fromReadableStream()

Published on July 27, 2024

langbase v0.1.0

06 Nov 06:19
f846ff0

Choose a tag to compare


Published on July 27, 2024

langbase v0.0.2

06 Nov 06:19
f846ff0

Choose a tag to compare

Release notes not available.


Published on August 17, 2023

langbase v0.0.1

06 Nov 06:19
f846ff0

Choose a tag to compare

  • Initial package. Let's do this IA.

Published on August 17, 2023

langbase v0.0.0

06 Nov 06:19
f846ff0

Choose a tag to compare

Release notes not available.


Published on July 18, 2024

1.0.0

27 Aug 19:19
a2e1171

Choose a tag to compare

All changes documented in the changelog here.

Major Changes

  • 📦 NEW: Chat support in both both generateText() and streamText()

  • 👌 IMPROVE: Example updates for Node, browser, Next.js, React, etc.

  • 👌 IMPROVE: ⌘ Langbase SDK Docs and API reference for both generateText() and streamText()

  • ‼️ BREAKING: ChoiceNonStream type is now renamed to ChoiceGenerate.

  • ‼️ 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?'}],
    });

What's Changed

New Contributors