GithubHelp home page GithubHelp logo

xxsuper / conversational-ai-livekit Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hanxie-crypto/conversational-ai-livekit

0.0 0.0 0.0 2.63 MB

基于阿里云的tts, llm,stt模型构建的实时对话应用

JavaScript 1.80% Python 37.54% TypeScript 59.84% CSS 0.81%

conversational-ai-livekit's Introduction

项目介绍

该项目是基于livekit和阿里云服务集成的实时大模型通讯项目,实现了实时聊天效果,可以接入知识库,智能体 效果图

1. 安装及启动live-kit server

以下教程: https://docs.livekit.io/home/self-hosting/local/

2. 启动agent-quickstart 项目

cd agent-quickstart

export LIVEKIT_URL=http://127.0.0.1:7880

export LIVEKIT_API_KEY=devkey

export LIVEKIT_API_SECRET=secret

export DASHSCOPE_API_KEY=<API_KEY>

export LLM_BASE_URL=<ANY_LLM_API_KEY>

export LLM_API_KEY=<ANY_LLM_API_KEY>

python3 -m venv venv source venv/bin/activate pip install -r requirements.txt python agent.py dev

3.启动前端项目

cd agents-playground

修改 .env.examplate -> .env

npm i

npm run dev

补充

Dashscope 的API_KEY也就是百炼基础模型的API_KEY获取地址 https://bailian.console.aliyun.com/#/model-market

LLM_BASE_URL 和 LLM_API_KEY 使用任意兼容 OpenAI 的大模型服务, 建议使用AgentCraft 这样可以把指令设置,知识库和智能体统一放在一起测试

AgentCraft获取LLM_BASE_URL 和 LLM_API_KEY

conversational-ai-livekit's People

Contributors

hanxie-crypto avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.