it's free*.ai

llamafile

llamafile ist Mozillas Trick: Eine Datei ist sowohl das GGUF-Gewicht als auch die Laufzeit (llama.cpp plus Cosmopolitan Libc). Herunterladen, chmod +x, ausführen. Keine Installation, kein Python, kein Docker.

llamafile ist Mozillas Trick: Eine Datei ist sowohl das GGUF-Gewicht als auch die Laufzeit (llama.cpp plus Cosmopolitan Libc). Herunterladen, chmod +x, ausführen. Keine Installation, kein Python, kein Docker.

`--server` legt OpenAI-Kompatibilität auf Port 8080. Kontext steht beim Start via -c fest. Das richtige Werkzeug, um jemandem ein Modell als Programm in die Hand zu drücken.

Max. Kontext
Set with -c at launch
Gratis-Tarif
Unbegrenzt und privat
Anforderung
Nichts — kein Konto

Endpunkt

Basis-URLhttp://localhost:8080/v1
RatengrenzeNone — it is your machine

Codebeispiele

npm install openai
import OpenAI from 'openai'

const client = new OpenAI({
  baseURL: 'http://localhost:8080/v1',
  apiKey: 'not-needed'
})

const response = await client.chat.completions.create({
  model: 'LLaMA_CPP',
  messages: [{ role: 'user', content: 'Explain closures in one paragraph.' }]
})

console.log(response.choices[0].message.content)

Wissenswert

Modelle, die Sie gratis bekommen2