{{define "claim"}} {{t "claim.title"}}

{{t "claim.heading"}}

llmgw ยท {{.BaseURL}}

{{if .Secret}}

{{t "claim.shown_once"}}

{{.Secret}}

{{t "claim.store_it"}}

{{t "claim.using_it"}}

export LLMGW_API_KEY={{.Secret}}

curl {{.BaseURL}}/v1/chat/completions \
  -H "Authorization: Bearer $LLMGW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "<model-name>", "messages": [{"role":"user","content":"hello"}]}'

{{th "claim.replace_placeholder" .BaseURL}}

from openai import OpenAI
client = OpenAI(base_url="{{.BaseURL}}/v1", api_key=os.environ["LLMGW_API_KEY"])

{{th "claim.endpoints" .BaseURL}}

{{else if .Gone}}

{{.Message}}

{{t "claim.ask_again"}}

{{else}}

{{t "claim.issued"}}

{{t "claim.expires" .ExpiresAt}}

{{end}}
{{end}}