Skip to content
@aifn-run

ai.fn()

Cloud functions that execute tasks with AI

Hi there đź‘‹

This is ai.fn(), a service to use AI chat completions as a regular Javascript function in any project, for both browser and Node.JS

See more at https://aifn.run

Motivation

ChatBot integrations and REST API's have their own boilerplate and set up, which has to be done over and over again.

Javascript already offers the tools we need to make that easier: async/await combined with ES module imports.

Not only that, with AI completions we can achieve many tasks using simple prompts, encapsulated as Javascript functions.

Here's an example

import ai from 'https://aifn.run/ai.mjs'
const lorem = await ai.fn('Create a lorem ipsum paragraph with {count} words');
const paragraph = await lorem({ count: 100 });

Popular repositories Loading

  1. aifn-run aifn-run Public

    Vue

  2. client client Public

    CLI for ai.fn

    JavaScript

  3. .github .github Public

Repositories

Showing 3 of 3 repositories
  • aifn-run Public
    aifn-run/aifn-run’s past year of commit activity
    Vue 0 0 0 0 Updated May 10, 2024
  • client Public

    CLI for ai.fn

    aifn-run/client’s past year of commit activity
    JavaScript 0 0 0 0 Updated Sep 7, 2023
  • .github Public
    aifn-run/.github’s past year of commit activity
    0 0 0 0 Updated Jul 16, 2023

People

This organization has no public members. You must be a member to see who’s a part of this organization.

Top languages

Loading…

Most used topics

Loading…