Skip to content

Releases: axflow/axflow

Add support for Gemini

21 Dec 00:31
ce5804a
Compare
Choose a tag to compare
import { StreamToIterable } from '@axflow/models/shared';
import { GoogleGenerateContent } from '@axflow/models/google/generate-content';

const stream = await GoogleGenerateContent.stream(
  {
    model: 'gemini-pro',
    contents: [
      {
        parts: [
          {
            text: 'Write a two sentence story about a magic backpack',
          },
        ],
      },
    ],
  },
  {
    apiKey: process.env.GOOGLE_API_KEY,
  }
);

for await (const chunk of StreamToIterable(stream)) {
  console.log(chunk);
}

Add support for Together.ai inference endpoints

16 Dec 01:53
ae40ef7
Compare
Choose a tag to compare

For example, we can run Llama2 70B on Together's inference endpoint with:

import { StreamToIterable } from '@axflow/models/shared';
import { TogetherAIInference } from '@axflow/models/togetherai/inference';

const stream = await TogetherAIInference.stream(
  {
    model: 'togethercomputer/llama-2-70b-chat',
    prompt: '[INST] Using no more than 20 words, what is the Eiffel tower? [/INST] ',
    max_tokens: 250,
  },
  {
    apiKey: process.env.TOGETHERAI_API_KEY,
  }
);

for await (const chunk of StreamToIterable(stream)) {
  console.log(chunk);
}

@axflow/models 0.0.23

27 Nov 23:31
3f3abc7
Compare
Choose a tag to compare

Support openAI tools:

  • Multiple tools per API call
  • Support streaming partial tools with new toolCallsAccessor callback

Support new openAI types after dev day

07 Nov 18:36
03f48e8
Compare
Choose a tag to compare

OpenAI made some changes to their SDK during their 2023 dev day, Axflow now supports them:

  • Renaming of functions to tools
  • Support for json_mode
  • Support for seed and deterministic calls

Support Cohere v3 embedding models

02 Nov 18:41
0ed2872
Compare
Choose a tag to compare

Add createMessage utility

31 Oct 01:52
a7689d8
Compare
Choose a tag to compare
@axflow/models@0.0.18

@axflow/models@0.0.18

Support reloading system messages in useChat hook

25 Oct 23:58
004545e
Compare
Choose a tag to compare
@axflow/models@0.0.17

@axflow/models@0.0.17

Support OpenAI functions in useChat hook

20 Oct 22:27
7135ff7
Compare
Choose a tag to compare
@axflow/models@0.0.16

@axflow/models@0.0.16

Add reload functionality for useChat

11 Oct 23:25
e3a7d38
Compare
Choose a tag to compare
@axflow/models@0.0.15

@axflow/models@0.0.15

System message and callback for new messages

10 Oct 21:09
4a4b288
Compare
Choose a tag to compare
@axflow/models@0.0.14

@axflow/models@0.0.14