Code Monkey home page Code Monkey logo

groq2api's Introduction

Groq2API

Installation

docker run -d -p 8080:8080 ghcr.io/star-studio-develop/groq2api:latest

Vercel部署

Deploy with Vercel

Koyeb部署

Deploy to Koyeb

Render部署

Deploy

Railway部署

Deploy on Railway

Usage

可选参数列表

  • model 模型名称
    • gemma-7b-it
    • mixtral-8x7b-32768
    • llama2-70b-4096
    • llama3-8b-8192
    • llama3-70b-8192
  • stream 是否流式输出
    • true
    • false
  • max_tokens 最大生成长度
    • 4096 (llama2-70b-4096)
    • 8192 (gemma-7b-it)
    • 32768 (mixtral-8x7b-32768)
  • message
    • role 消息角色
      • user
      • assistant
curl --request POST \
  --url http://127.0.0.1:8080/v1/chat/completions \
  --header 'Authorization: Bearer stytch_session' \
  --data '{
  "messages": [
    {
      "role": "user",
      "content": "hi"
    }
  ],
  "model": "mixtral-8x7b-32768",
  "max_tokens": 4096,
  "stream": true
}'

stytch_session 获取方法

image|690x233

groq2api's People

Contributors

2311676378 avatar icpd avatar lvguanjun avatar magicalmadoka avatar red-cocode avatar smnetstudio avatar tkizm1 avatar xiaozhou26 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.