EverestQ Engine
Multi-Language Developer Platform

Engine developer guides

Connect to the local Engine API from your application. For chat requests, replace the example model name with the name loaded on your server.

example.go
GO
package main

import (
    "fmt"
    "io"
    "net/http"
    "strings"
)

func main() {
    payload := strings.NewReader(`{"model":"everestq-coder","messages":[{"role":"user","content":"Hello"}]}`)
    res, err := http.Post("http://127.0.0.1:11434/v1/chat/completions", "application/json", payload)
    if err != nil { panic(err) }
    defer res.Body.Close()
    body, err := io.ReadAll(res.Body)
    if err != nil { panic(err) }
    fmt.Println(res.Status, string(body))
}