Skip to content

magello-group/az-functions

Repository files navigation

Azure Functions Example Project

This project contains Azure Functions for various tasks.

Table of Contents

Introduction

Monorepo for Azure Functions demo

Install pnpm

To install pnpm, follow these steps:

  1. Using npm:
npm install -g pnpm
  1. Using Homebrew (macOS):
brew install pnpm
  1. Using curl:
curl -fsSL https://get.pnpm.io/install.sh | sh -

For more installation options and detailed instructions, visit the official pnpm installation guide.

Usage

Run pnpm install

pnpm install

Build

pnpm run build

Run

You need to provide the following api keys

export OPENAI_API_KEY="<your-openai-key>"
export DEEPSEEK_API_KEY="<your-deepseek-key>"
pnpm start

Visit

http://localhost:7071/api/public/index.html

Functions

Functions:

  1. ChannelService_Join: [POST] http://localhost:7071/api/channels/{channel}/join # Just for testing
  2. ChannelService_List: [GET] http://localhost:7071/api/channels/list # Just for testing
  3. MessageService_Send: [POST] http://localhost:7071/api/messages/{option}/send # Returns the whole answer from API
  4. MessageService_Stream: [POST] http://localhost:7071/api/messages/{option}/stream # Streams the answer using text/event-stream
  5. StaticService_GetStaticFile: [GET] http://localhost:7071/api/public/{\*path} # Serves index.html

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •