Code Monkey home page Code Monkey logo

glide-examples's Introduction

๐Ÿฆ Glide Demo

Get started with Glide Gateway in under a few minutes with docker-compose.

Get Started with Glide

MacOS, Linux

1. Clone this repository

git clone https://github.com/EinStack/glide-demo.git

2. Init Configs

The demo repository comes with a basic config. Additionally, you need to init your secrets by running:

make init # from the demo root

This will create the secrets directory with one .OPENAI_API_KEY file that you need to put your key to.

3. Start Glide

After that, just use docker compose via this command to start your demo environment:

make up

Windows

1. Clone this repository

git clone https://github.com/EinStack/glide-demo.git

2. Init Configs

  • create a dir called secrets in the demo project root
  • inside of the dir create a new file called .OPENAI_API_KEY with your OpenAI access token

3. Start Glide

After that, just use docker compose via this command to start your demo environment:

docker-compose up -d

4. Sample API Request to /chat endpoint

See API Reference for more details.

{
 "message":
      {
        "role": "user",
        "content": "Where was it played?"
      },
    "messageHistory": [
      {"role": "system", "content": "You are a helpful assistant."},
      {"role": "user", "content": "Who won the world series in 2020?"},
      {"role": "assistant", "content": "The Los Angeles Dodgers won the World Series in 2020."}
    ]
}

API Docs

Finally, Glide comes with OpenAPI documentation that is accessible via http://127.0.0.1:9099/v1/swagger/index.html

That's it ๐Ÿ™Œ

Use our documentation to further learn about Glide capabilities and configs.

Alternative Installations

Other ways to install Glide are available in the Glide repo.

glide-examples's People

Contributors

roma-glushko avatar

Watchers

 avatar

glide-examples's Issues

๐Ÿ› Make installation does work on Windows

Path: /get-started/docker-installation

Hello there, and good day to you. I'm writing this as i think the instructions on the docker installation page is quite unclear. i've followed the instructions given but i have a problem with using make command on my windows terminal and then after i've run the container what should i do? i am kind of confuse whether to run the GET method request for the /chat

image

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.