Skip to content

Set up custom AI model API #3

@mgitlabs

Description

@mgitlabs

I have an LLM model and want to add it to OpenClaw, but I don't know how to configure it because I can't access the OpenClaw CLI. Please guide me.

curl -X POST https://**********.workers.dev \
  -H "Authorization: Bearer ***********" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "Write a short poem about a rainy day.",
    "systemPrompt": "You are a helpful assistant.",
    "history": [
      { "role": "user", "content": "Tell me something about weather." },
      { "role": "assistant", "content": "Weather is the state of the atmosphere." }
    ]
  }'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions