ai

Build AI-powered applications with React, Svelte, Vue, and Solid

OTHER License

Downloads
320
Stars
7.6K

Bot releases are visible (Hide)

ai - [email protected]

Published by github-actions[bot] about 1 year ago

Patch Changes

  • 2470658: ai/react: fix: handle partial chunks in react getStreamedResponse when using experimental_StreamData
ai - [email protected]

Published by github-actions[bot] about 1 year ago

Patch Changes

  • 8a2cbaf: vue/use-completion: fix: don't send network request for loading state"
  • bbf4403: langchain-stream: return langchain writer from LangChainStream
ai - [email protected]

Published by github-actions[bot] about 1 year ago

Patch Changes

  • 3fc2b32: ai/vue: fix: make body parameter reactive
ai - [email protected]

Published by github-actions[bot] about 1 year ago

Patch Changes

  • 26bf998: ai/react: make reload/complete/append functions stable via useCallback
ai - [email protected]

Published by github-actions[bot] about 1 year ago

Patch Changes

ai - [email protected]

Published by github-actions[bot] about 1 year ago

Patch Changes

  • e5bf68d: react/use-chat: fix experimental functions returning proper function messages

    Closes #478

ai - [email protected]

Published by github-actions[bot] about 1 year ago

Patch Changes

  • 7b389a7: fix: improve safety for type check in openai-stream
ai - [email protected]

Published by github-actions[bot] about 1 year ago

Patch Changes

  • 867a3f9: Fix client-side function calling (#467, #469)

    add Completion type from the openai SDK to openai-stream (#472)

ai - [email protected]

Published by github-actions[bot] about 1 year ago

Patch Changes

  • 84e0cc8: Add experimental_StreamData and new opt-in wire protocol to enable streaming additional data. See https://github.com/vercel/ai/pull/425.

    Changes onCompletion back to run every completion, including recursive function calls. Adds an onFinish callback that runs once everything has streamed. For users not using experimental function handling on the server, onCompletion functions the same but it's recommended you migrate to onFinish.

    If you're using experimental function handlers on the server and caching via onCompletion,
    you may want to adjust your caching code to account for recursive calls so the same key isn't used.

    let depth = 0
    
    const stream = OpenAIStream(response, {
        async onCompletion(completion) {
          depth++
          await kv.set(key + '_' + depth, completion)
          await kv.expire(key + '_' + depth, 60 * 60)
        }
      })
    
ai - [email protected]

Published by github-actions[bot] about 1 year ago

Patch Changes

  • 04084a8: openai-stream: fix experimental_onFunctionCall types for OpenAI SDK v4
ai - [email protected]

Published by github-actions[bot] about 1 year ago

Minor Changes

  • dca1ed9: Update packages and examples to use OpenAI SDK v4
ai - [email protected]

Published by github-actions[bot] about 1 year ago

Patch Changes

  • c2917d3: Add support for the Anthropic SDK, newer Anthropic API versions, and improve Anthropic error handling
ai - [email protected]

Published by github-actions[bot] about 1 year ago

Patch Changes

  • 4ef8015: Prevent isLoading in vue integration from triggering extraneous network requests
ai - [email protected]

Published by github-actions[bot] about 1 year ago

Patch Changes

  • 5f91427: ai/svelte: fix isLoading return value
ai - [email protected]

Published by github-actions[bot] about 1 year ago

Patch Changes

  • ab2b973: fix pnpm-lock.yaml
ai - [email protected]

Published by github-actions[bot] about 1 year ago

Patch Changes

  • 4df2a49: Fix termination of ReplicateStream by removing the terminating {}from output
ai - [email protected]

Published by github-actions[bot] about 1 year ago

Patch Changes

  • 3929a41: Add ReplicateStream helper
ai - [email protected]

Published by github-actions[bot] about 1 year ago

Patch Changes

  • 9012e17: react/svelte/vue: fix making unnecessary SWR request to API endpoint
ai - [email protected]

Published by github-actions[bot] about 1 year ago

Patch Changes

  • 3d29799: React/Svelte/Vue: keep isLoading in sync between hooks with the same ID.

    React: don't throw error when submitting

ai - [email protected]

Published by github-actions[bot] about 1 year ago

Patch Changes

  • f50d9ef: Add experimental_buildLlama2Prompt helper for Hugging Face