ឡូហ្គោ SHANNON A.I.
SHANNON A.I.
ជជែក តម្លៃ API ការស្រាវជ្រាវ ក្រុមហ៊ុន Pentest AI ការជំរុញការចាប់ផ្តើម
ចូល
ផែនការ & ការប្រើប្រាស់
ជជែក តម្លៃ API ការស្រាវជ្រាវ ក្រុមហ៊ុន Pentest AI ការជំរុញការចាប់ផ្តើម ចូល ផែនការ & ការប្រើប្រាស់

ជ្រើសរើសភាសារបស់អ្នក

ភាសាទាំងអស់ស្មើគ្នា។ ជ្រើសរើសភាសាដែលអ្នកចង់ប្រើ។

ឯកសារ API

Shannon API

API AI ដែលឆបគ្នា OpenAI និង Anthropic ជាមួយការហៅមុខងារ ការស្វែងរកលើវេប និងលទ្ធផលមានរចនាសម្ព័ន្ធ។

ទទួលគន្លឹះ API របស់អ្នក សាក Playground V2
ឯកសារ
  • OV ទិដ្ឋភាពទូទៅ
  • CP សមត្ថភាព
  • QS ចាប់ផ្តើមរហ័ស
  • PG API Playground ថ្មី
  • AU ការផ្ទៀងផ្ទាត់
  • ML ម៉ូដែល
  • FN ការហៅមុខងារ
  • JS លទ្ធផលមានរចនាសម្ព័ន្ធ
  • SS ស្ទ្រីម
  • WS ស្វែងរកវេបក្នុងស្រាប់
  • AN ទ្រង់ទ្រាយ Anthropic
  • CT cli-tools ថ្មី
  • SD SDK
  • ER ការគ្រប់គ្រងកំហុស
  • CL កំណត់ត្រាកែប្រែ
  • AK គន្លឹះ API របស់អ្នក
  • US ការប្រើប្រាស់របស់អ្នក

Shannon AI API Documentation

ទិដ្ឋភាពទូទៅ

ឯកសារសាធារណៈ

អ្វីៗទាំងអស់ដែលអ្នកត្រូវការ ដើម្បីចាប់ផ្តើមជាមួយ API ឆបគ្នា OpenAI និង Anthropic របស់ Shannon។

URL ឆបគ្នា OpenAI
https://api.shannon-ai.com/v1/chat/completions

ប្រើ Chat Completions API ជាមួយការហៅមុខងារ និងស្ទ្រីម។

URL ឆបគ្នា Anthropic
https://api.shannon-ai.com/v1/messages

ទ្រង់ទ្រាយ Claude Messages ជាមួយឧបករណ៍ និងក្បាល anthropic-version។

ក្បាល ការផ្ទៀងផ្ទាត់
Authorization: Bearer <api-key>

ឬ X-API-Key ជាមួយ anthropic-version សម្រាប់ការហៅទម្រង់ Claude។

ការចូលដំណើរការ ស្ថានភាព
ឯកសារសាធារណៈ - ត្រូវការគន្លឹះសម្រាប់ការហៅ

ស្ទ្រីម, ការហៅមុខងារ, លទ្ធផលមានរចនាសម្ព័ន្ធ, ស្វែងរកវេប។

បញ្ជីចាប់ផ្តើម
  • +
    ប្ដូរ SDK ទៅ Shannon
    កំណត់ baseURL ទៅ endpoint OpenAI ឬ Anthropic ខាងលើ។
    ការកំណត់
  • +
    ភ្ជាប់គន្លឹះ API របស់អ្នក
    ប្រើ Bearer token សម្រាប់ OpenAI ឬ X-API-Key + anthropic-version។
    សុវត្ថិភាព
  • +
    បើកឧបករណ៍ និងលទ្ធផលមានរចនាសម្ព័ន្ធ
    គាំទ្រ OpenAI tools/functions, JSON schema និង web_search ក្នុងស្រាប់។
    សមត្ថភាព
  • +
    តាមដានការប្រើប្រាស់
    នៅពេលចូលគណនី អ្នកអាចមើលការប្រើ token និងស្វែងរកនៅលើទំព័រនេះ។
    វិភាគ

សមត្ថភាព

OpenAI + Anthropic

ការជំនួស Drop-in សម្រាប់ OpenAI និង Anthropic API ជាមួយការគាំទ្រឧបករណ៍ លទ្ធផលមានរចនាសម្ព័ន្ធ និងស្វែងរកវេបក្នុងស្រាប់។

AI

ការជំនួស Drop-in

ឆបគ្នា

ដំណើរការជាមួយ SDK របស់ OpenAI និង Anthropic។ តែប្តូរ base URL ប៉ុណ្ណោះ។

AI

ការហៅមុខងារ

ឧបករណ៍

កំណត់ឧបករណ៍ ហើយអនុញ្ញាតឱ្យ Shannon ហៅ។ គាំទ្រ auto, forced និង none។

AI

ស្វែងរកវេបក្នុងស្រាប់

ស្វែងរក

ស្វែងរកវេបពេលវេលាពិតជាមួយការដកស្រង់ប្រភព។ អាចប្រើបានដោយស្វ័យប្រវត្តិ។

AI

លទ្ធផលមានរចនាសម្ព័ន្ធ

JSON

មុខងារ JSON និងការបង្ខំ JSON Schema សម្រាប់ការទាញទិន្នន័យដែលទុកចិត្តបាន។

AI

ឧបករណ៍ច្រើនជំហាន

Agentic

រង្វិលជុំការប្រតិបត្តិមុខងារដោយស្វ័យប្រវត្តិ។ ដល់ 10 ជំហានក្នុងមួយសំណើ។

AI

ស្ទ្រីម

លឿន

Server-sent events សម្រាប់ស្ទ្រីម token ពេលវេលាពិត។

ចាប់ផ្តើមរហ័ស

5 នាទី

ចាប់ផ្តើមក្នុង 3 ជំហាន។ Shannon ស្រដៀងនឹង client OpenAI និង Anthropic។

1

កំណត់ Base URL

ប្រើ endpoint ដែលឆបគ្នា OpenAI។

https://api.shannon-ai.com/v1/chat/completions
2

បន្ថែមគន្លឹះ API

ប្រើ Bearer auth ក្នុងក្បាល Authorization។

3

ផ្ញើសារដំបូង

ជ្រើសភាសា និងប្តូរគន្លឹះរបស់អ្នក។

Python
from openai import OpenAI

client = OpenAI(
    api_key="YOUR_API_KEY",
    base_url="https://api.shannon-ai.com/v1"
)

response = client.chat.completions.create(
    model="shannon-1.6-lite",
    messages=[
        {"role": "system", "content": "You are a helpful assistant."},
        {"role": "user", "content": "Hello, Shannon!"}
    ],
    max_tokens=1024
)

print(response.choices[0].message.content)
JavaScript
import OpenAI from 'openai';

const client = new OpenAI({
  apiKey: 'YOUR_API_KEY',
  baseURL: 'https://api.shannon-ai.com/v1'
});

const response = await client.chat.completions.create({
  model: 'shannon-1.6-lite',
  messages: [
    { role: 'system', content: 'You are a helpful assistant.' },
    { role: 'user', content: 'Hello, Shannon!' }
  ],
  max_tokens: 1024
});

console.log(response.choices[0].message.content);
Go
package main

import (
    "context"
    "fmt"
    openai "github.com/sashabaranov/go-openai"
)

func main() {
    config := openai.DefaultConfig("YOUR_API_KEY")
    config.BaseURL = "https://api.shannon-ai.com/v1"
    client := openai.NewClientWithConfig(config)

    resp, err := client.CreateChatCompletion(
        context.Background(),
        openai.ChatCompletionRequest{
            Model: "shannon-1.6-lite",
            Messages: []openai.ChatCompletionMessage{
                {Role: "system", Content: "You are a helpful assistant."},
                {Role: "user", Content: "Hello, Shannon!"},
            },
            MaxTokens: 1024,
        },
    )
    if err != nil {
        panic(err)
    }
    fmt.Println(resp.Choices[0].Message.Content)
}
cURL
curl -X POST "https://api.shannon-ai.com/v1/chat/completions" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "shannon-1.6-lite",
    "messages": [
      {"role": "system", "content": "You are a helpful assistant."},
      {"role": "user", "content": "Hello, Shannon!"}
    ],
    "max_tokens": 1024
  }'

ទ្រង់ទ្រាយចម្លើយ

ចម្លើយជោគជ័យ
{
  "id": "chatcmpl-abc123",
  "object": "chat.completion",
  "created": 1234567890,
  "model": "Shannon 1.6 Lite",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "Hello! I'm Shannon, your AI assistant. How can I help you today?"
      },
      "finish_reason": "stop"
    }
  ],
  "usage": {
    "prompt_tokens": 25,
    "completion_tokens": 18,
    "total_tokens": 43
  }
}

API Playground

ថ្មី

សាក Shannon API ដោយផ្ទាល់ក្នុងកម្មវិធីរុករក។ បង្កើតសំណើ ដំណើរការ ហើយមើលចម្លើយពេលវេលាពិត។

1

Chat, Responses, Messages

Switch across OpenAI Chat Completions, Responses, and Anthropic Messages without leaving the playground.

2

Stream live output

Run real requests, inspect raw JSON, and view stream events from the same operator console.

3

Reuse your key

Signed-in users can pull their Shannon API key straight into the dedicated playground workspace.

/km/docs/playground

The playground now lives on its own route so the API docs stay Astro-rendered while the request builder remains an explicitly interactive client tool.

សាក Playground V2 ទទួលគន្លឹះ API របស់អ្នក

ការផ្ទៀងផ្ទាត់

សំណើ API ទាំងអស់ត្រូវការផ្ទៀងផ្ទាត់ដោយគន្លឹះ Shannon API របស់អ្នក។

ទ្រង់ទ្រាយ OpenAI (សូមណែនាំ)

HTTP
Authorization: Bearer YOUR_API_KEY

ទ្រង់ទ្រាយ Anthropic

HTTP
X-API-Key: YOUR_API_KEY
anthropic-version: 2023-06-01

ម៉ូដែល

Shannon ផ្តល់ម៉ូដែលជាច្រើនសម្រាប់ករណីប្រើប្រាស់ផ្សេងៗ។

AI
shannon-1.6-lite Shannon 1.6 Lite

ចម្លើយលឿន និងមានប្រសិទ្ធភាពសម្រាប់ការងារប្រចាំថ្ងៃ

បរិបទ 128K
ល្អសម្រាប់ ជជែក, សំណួរ/ចម្លើយ, បង្កើតមាតិកា
AI
shannon-1.6-pro Shannon 1.6 Pro

ការគិតជ្រាលជ្រៅសម្រាប់បញ្ហាស្មុគស្មាញ

បរិបទ 128K
ល្អសម្រាប់ វិភាគ, ស្រាវជ្រាវ, កិច្ចការស្មុគស្មាញ
AI
shannon-2-lite Shannon 2 Lite

បរិបទ 128K
ល្អសម្រាប់
AI
shannon-2-pro Shannon 2 Pro

បរិបទ 128K
ល្អសម្រាប់
AI
shannon-coder-1 Shannon Coder

បានបង្កើនប្រសិទ្ធភាពសម្រាប់ Claude Code CLI ជាមួយកូតាតាមការហៅ

បរិបទ 128K
ល្អសម្រាប់ បង្កើតកូដ, ប្រើឧបករណ៍, បញ្ចូល CLI
កូតាតាមការហៅ

ការហៅមុខងារ

កំណត់ឧបករណ៍ដែល Shannon អាចហៅដើម្បីអនុវត្តសកម្មភាព ឬទាញយកព័ត៌មាន។

Python
from openai import OpenAI
import json

client = OpenAI(
    api_key="YOUR_API_KEY",
    base_url="https://api.shannon-ai.com/v1"
)

# Define available tools/functions
tools = [
    {
        "type": "function",
        "function": {
            "name": "get_weather",
            "description": "Get current weather for a location",
            "parameters": {
                "type": "object",
                "properties": {
                    "location": {
                        "type": "string",
                        "description": "City name, e.g., 'Tokyo'"
                    },
                    "unit": {
                        "type": "string",
                        "enum": ["celsius", "fahrenheit"]
                    }
                },
                "required": ["location"]
            }
        }
    }
]

response = client.chat.completions.create(
    model="shannon-1.6-lite",
    messages=[{"role": "user", "content": "What's the weather in Tokyo?"}],
    tools=tools,
    tool_choice="auto"
)

# Check if model wants to call a function
if response.choices[0].message.tool_calls:
    tool_call = response.choices[0].message.tool_calls[0]
    print(f"Function: {tool_call.function.name}")
    print(f"Arguments: {tool_call.function.arguments}")
JavaScript
import OpenAI from 'openai';

const client = new OpenAI({
  apiKey: 'YOUR_API_KEY',
  baseURL: 'https://api.shannon-ai.com/v1'
});

const tools = [
  {
    type: 'function',
    function: {
      name: 'get_weather',
      description: 'Get current weather for a location',
      parameters: {
        type: 'object',
        properties: {
          location: { type: 'string', description: "City name" },
          unit: { type: 'string', enum: ['celsius', 'fahrenheit'] }
        },
        required: ['location']
      }
    }
  }
];

const response = await client.chat.completions.create({
  model: 'shannon-1.6-lite',
  messages: [{ role: 'user', content: "What's the weather in Tokyo?" }],
  tools,
  tool_choice: 'auto'
});

if (response.choices[0].message.tool_calls) {
  const toolCall = response.choices[0].message.tool_calls[0];
  console.log('Function:', toolCall.function.name);
  console.log('Arguments:', toolCall.function.arguments);
}

ជម្រើសឧបករណ៍

"auto" ម៉ូដែលសម្រេចថាតើហៅមុខងារឬអត់ (លំនាំដើម)
"none" បិទការហៅមុខងារសម្រាប់សំណើនេះ
{"type": "function", "function": {"name": "..."}} បង្ខំឱ្យហៅមុខងារដែលកំណត់

ចម្លើយហៅមុខងារ

ពេលម៉ូដែលហៅមុខងារ
{
  "id": "chatcmpl-xyz",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": null,
        "tool_calls": [
          {
            "id": "call_abc123",
            "type": "function",
            "function": {
              "name": "get_weather",
              "arguments": "{\"location\": \"Tokyo\", \"unit\": \"celsius\"}"
            }
          }
        ]
      },
      "finish_reason": "tool_calls"
    }
  ]
}

លទ្ធផលមានរចនាសម្ព័ន្ធ

បង្ខំឱ្យ Shannon ឆ្លើយតបជាមួយ JSON ត្រឹមត្រូវដែលស្របនឹង schema របស់អ្នក។

Python
from openai import OpenAI

client = OpenAI(
    api_key="YOUR_API_KEY",
    base_url="https://api.shannon-ai.com/v1"
)

# Force JSON output with schema
response = client.chat.completions.create(
    model="shannon-1.6-lite",
    messages=[
        {"role": "user", "content": "Extract: John Doe, 30 years old, engineer"}
    ],
    response_format={
        "type": "json_schema",
        "json_schema": {
            "name": "person_info",
            "schema": {
                "type": "object",
                "properties": {
                    "name": {"type": "string"},
                    "age": {"type": "integer"},
                    "occupation": {"type": "string"}
                },
                "required": ["name", "age", "occupation"]
            }
        }
    }
)

import json
data = json.loads(response.choices[0].message.content)
print(data)  # {"name": "John Doe", "age": 30, "occupation": "engineer"}
JavaScript
import OpenAI from 'openai';

const client = new OpenAI({
  apiKey: 'YOUR_API_KEY',
  baseURL: 'https://api.shannon-ai.com/v1'
});

const response = await client.chat.completions.create({
  model: 'shannon-1.6-lite',
  messages: [
    { role: 'user', content: 'Extract: John Doe, 30 years old, engineer' }
  ],
  response_format: {
    type: 'json_schema',
    json_schema: {
      name: 'person_info',
      schema: {
        type: 'object',
        properties: {
          name: { type: 'string' },
          age: { type: 'integer' },
          occupation: { type: 'string' }
        },
        required: ['name', 'age', 'occupation']
      }
    }
  }
});

const data = JSON.parse(response.choices[0].message.content);
console.log(data); // { name: "John Doe", age: 30, occupation: "engineer" }

ជម្រើសទ្រង់ទ្រាយចម្លើយ

{"type": "json_object"} បង្ខំឲ្យមានលទ្ធផល JSON ត្រឹមត្រូវ (គ្មាន schema ជាក់លាក់)
{"type": "json_schema", "json_schema": {...}} បង្ខំឲ្យលទ្ធផលស្របនឹង schema ជាក់លាក់របស់អ្នក

ស្ទ្រីម

បើកស្ទ្រីម token ពេលវេលាពិតដោយ Server-Sent Events សម្រាប់ UI ដែលឆ្លើយតបលឿន។

Python
from openai import OpenAI

client = OpenAI(
    api_key="YOUR_API_KEY",
    base_url="https://api.shannon-ai.com/v1"
)

# Enable streaming for real-time responses
stream = client.chat.completions.create(
    model="shannon-1.6-lite",
    messages=[
        {"role": "user", "content": "Write a short poem about AI"}
    ],
    stream=True
)

for chunk in stream:
    if chunk.choices[0].delta.content:
        print(chunk.choices[0].delta.content, end="", flush=True)
JavaScript
import OpenAI from 'openai';

const client = new OpenAI({
  apiKey: 'YOUR_API_KEY',
  baseURL: 'https://api.shannon-ai.com/v1'
});

// Enable streaming for real-time responses
const stream = await client.chat.completions.create({
  model: 'shannon-1.6-lite',
  messages: [
    { role: 'user', content: 'Write a short poem about AI' }
  ],
  stream: true
});

for await (const chunk of stream) {
  const content = chunk.choices[0]?.delta?.content;
  if (content) process.stdout.write(content);
}
សំណើ: ចម្លើយស្ទ្រីមមកជារៀងរាល់ Server-Sent Events។ រាល់ផ្នែកមាន delta នៃមាតិកាផ្នែក។

ស្វែងរកវេបក្នុងស្រាប់

Shannon រួមបញ្ចូលមុខងារ web_search ដែលមានស្រាប់ និងអាចប្រើបានស្វ័យប្រវត្តិ។

Python
from openai import OpenAI

client = OpenAI(
    api_key="YOUR_API_KEY",
    base_url="https://api.shannon-ai.com/v1"
)

# Web search is automatically available!
# Shannon will use it when needed for current information

response = client.chat.completions.create(
    model="shannon-1.6-lite",
    messages=[
        {"role": "user", "content": "What are the latest AI news today?"}
    ],
    # Optionally, explicitly define web_search tool
    tools=[{
        "type": "function",
        "function": {
            "name": "web_search",
            "description": "Search the web for current information",
            "parameters": {
                "type": "object",
                "properties": {
                    "query": {"type": "string", "description": "Search query"}
                },
                "required": ["query"]
            }
        }
    }]
)

print(response.choices[0].message.content)
# Response includes sources and citations
JavaScript
import OpenAI from 'openai';

const client = new OpenAI({
  apiKey: 'YOUR_API_KEY',
  baseURL: 'https://api.shannon-ai.com/v1'
});

// Web search is automatically available!
// Shannon will use it when needed for current information

const response = await client.chat.completions.create({
  model: 'shannon-1.6-lite',
  messages: [
    { role: 'user', content: 'What are the latest AI news today?' }
  ],
  // Optionally, explicitly define web_search tool
  tools: [{
    type: 'function',
    function: {
      name: 'web_search',
      description: 'Search the web for current information',
      parameters: {
        type: 'object',
        properties: {
          query: { type: 'string', description: 'Search query' }
        },
        required: ['query']
      }
    }
  }]
});

console.log(response.choices[0].message.content);
// Response includes sources and citations
គន្លឹះ Pro: លទ្ធផលស្វែងរកវេបមានការដកស្រង់ប្រភព។ Shannon នឹងដកស្រង់ប្រភពដោយស្វ័យប្រវត្តិ។

ទ្រង់ទ្រាយ Anthropic

Shannon ក៏គាំទ្រទ្រង់ទ្រាយ Anthropic Messages API ផងដែរ។

https://api.shannon-ai.com/v1/messages
Python
import anthropic

client = anthropic.Anthropic(
    api_key="YOUR_API_KEY",
    base_url="https://api.shannon-ai.com/messages"
)

response = client.messages.create(
    model="shannon-1.6-lite",
    max_tokens=1024,
    messages=[
        {"role": "user", "content": "Hello, Shannon!"}
    ],
    # Tool use (Anthropic format)
    tools=[{
        "name": "web_search",
        "description": "Search the web",
        "input_schema": {
            "type": "object",
            "properties": {
                "query": {"type": "string"}
            },
            "required": ["query"]
        }
    }]
)

print(response.content[0].text)
JavaScript
import Anthropic from '@anthropic-ai/sdk';

const client = new Anthropic({
  apiKey: 'YOUR_API_KEY',
  baseURL: 'https://api.shannon-ai.com/messages'
});

const response = await client.messages.create({
  model: 'shannon-1.6-lite',
  max_tokens: 1024,
  messages: [
    { role: 'user', content: 'Hello, Shannon!' }
  ],
  // Tool use (Anthropic format)
  tools: [{
    name: 'web_search',
    description: 'Search the web',
    input_schema: {
      type: 'object',
      properties: {
        query: { type: 'string' }
      },
      required: ['query']
    }
  }]
});

console.log(response.content[0].text);
ក្បាលចាំបាច់: ទ្រង់ទ្រាយ Anthropic ត្រូវការមាន anthropic-version: 2023-06-01។

CLI Coding Agents

NEW

Use Shannon as the AI backend for popular CLI coding agents. Read files, edit code, run tests — all powered by Shannon's API.

CLI Claude Code

Anthropic's official CLI coding agent. Point it at Shannon to use as your AI backend for reading, editing, and running code directly in your terminal.

ANTHROPIC_BASE_URL=https://api.shannon-ai.com ANTHROPIC_API_KEY=sk-YOUR_KEY claude --bare
មើលឯកសារ ->
CLI Codex CLI

OpenAI's open-source coding agent. Uses the Responses API for multi-turn tool use, file editing, and shell commands — all routed through Shannon.

OPENAI_BASE_URL=https://api.shannon-ai.com/v1 OPENAI_API_KEY=sk-YOUR_KEY codex
មើលឯកសារ ->

Claude Code

Anthropic's official CLI coding agent. Set two environment variables and launch with --bare to skip Anthropic account login.

Bash
# Install Claude Code (requires Node.js 18+)
npm install -g @anthropic-ai/claude-code

# Connect to Shannon AI as backend
export ANTHROPIC_BASE_URL=https://api.shannon-ai.com
export ANTHROPIC_API_KEY=sk-YOUR_API_KEY

# Launch Claude Code in bare mode (no Anthropic account needed)
claude --bare

# Or run a one-shot command
claude --bare -p "Explain this codebase"

# Claude Code will use Shannon's Anthropic-compatible API
# for all AI operations: reading files, editing code,
# running tests, and multi-turn tool use.
Shell Config
# Alternative: set env vars permanently in your shell profile
# ~/.bashrc or ~/.zshrc

export ANTHROPIC_BASE_URL=https://api.shannon-ai.com
export ANTHROPIC_API_KEY=sk-YOUR_API_KEY

# Then just run:
claude --bare

# Supported features through Shannon:
# - Multi-turn conversations with full context
# - File reading and editing (tool use)
# - Shell command execution
# - Streaming responses
# - All Claude Code slash commands (/compact, /clear, etc.)

Codex CLI

OpenAI's open-source coding agent. Uses the Responses API for multi-turn tool use, file editing, and shell commands.

Bash
# Install Codex CLI
npm install -g @openai/codex

# Connect to Shannon AI as backend
export OPENAI_BASE_URL=https://api.shannon-ai.com/v1
export OPENAI_API_KEY=sk-YOUR_API_KEY

# Launch Codex
codex

# Or run a one-shot command
codex "fix the bug in main.py"

# Codex uses the Responses API (POST /v1/responses)
# Shannon handles tool calls including:
# - Reading and writing files
# - Running shell commands
# - Multi-turn function calling
Shell Config
# Alternative: set env vars permanently
# ~/.bashrc or ~/.zshrc

export OPENAI_BASE_URL=https://api.shannon-ai.com/v1
export OPENAI_API_KEY=sk-YOUR_API_KEY

# Then just run:
codex

# Supported features through Shannon:
# - Responses API with full tool use
# - Function calling (file read/write, shell exec)
# - Streaming with real-time output
# - Multi-turn conversations
# - All Codex approval modes (suggest, auto-edit, full-auto)
How It Works: Both tools send standard API requests (Anthropic Messages or OpenAI Responses) to Shannon. Shannon routes them through Gemini with full tool-use support. No Anthropic or OpenAI account needed — just your Shannon API key.

SDK

ឆបគ្នា

ប្រើ SDK OpenAI ឬ Anthropic ណាមួយ—តែប្តូរ base URL ប៉ុណ្ណោះ។

SDK ឆបគ្នា OpenAI

SDK Python

SDK OpenAI Python ផ្លូវការ — ប្រើបានជាមួយ Shannon

pip install openai
មើលឯកសារ ->
SDK JavaScript / TypeScript

SDK OpenAI Node.js ផ្លូវការ — ប្រើបានជាមួយ Shannon

npm install openai
មើលឯកសារ ->
SDK Go

កម្មវិធី Go របស់សហគមន៍សម្រាប់ API ឆបគ្នា OpenAI

go get github.com/sashabaranov/go-openai
មើលឯកសារ ->
SDK Ruby

កម្មវិធី Ruby របស់សហគមន៍សម្រាប់ API ឆបគ្នា OpenAI

gem install ruby-openai
មើលឯកសារ ->
SDK PHP

កម្មវិធី PHP របស់សហគមន៍សម្រាប់ API ឆបគ្នា OpenAI

composer require openai-php/client
មើលឯកសារ ->
SDK Rust

កម្មវិធី Rust async សម្រាប់ API ឆបគ្នា OpenAI

cargo add async-openai
មើលឯកសារ ->

SDK ឆបគ្នា Anthropic

SDK Python (Anthropic)

SDK Anthropic Python ផ្លូវការ — ប្រើបានជាមួយ Shannon

pip install anthropic
មើលឯកសារ ->
SDK TypeScript (Anthropic)

SDK Anthropic TypeScript ផ្លូវការ — ប្រើបានជាមួយ Shannon

npm install @anthropic-ai/sdk
មើលឯកសារ ->

ការគ្រប់គ្រងកំហុស

Shannon ប្រើកូដស្ថានភាព HTTP ស្តង់ដារ ហើយបញ្ជូនសារកំហុសលម្អិត។

400 សំណើមិនត្រឹមត្រូវ ទ្រង់ទ្រាយសំណើ ឬប៉ារ៉ាម៉ែត្រមិនត្រឹមត្រូវ
401 គ្មានសិទ្ធិ គន្លឹះ API មិនត្រឹមត្រូវ ឬបាត់បង់
402 លើសកូតា លើសកូតាតូខិន ឬការស្វែងរក
429 កំណត់អត្រា សំណើច្រើនពេក សូមបន្ថយល្បឿន
500 កំហុសម៉ាស៊ីនមេ កំហុសខាងក្នុង សូមព្យាយាមម្តងទៀតនៅពេលក្រោយ

ទ្រង់ទ្រាយចម្លើយកំហុស

ចម្លើយកំហុស
{
  "error": {
    "message": "Invalid API key provided",
    "type": "authentication_error",
    "code": "invalid_api_key"
  }
}

កំណត់ត្រាកែប្រែ

LOG

ការធ្វើបច្ចុប្បន្នភាព និងការកែលម្អថ្មីៗនៅក្នុង Shannon API។

v2.2.0
2026-03-28
  • ថ្មី Claude Code support — use Shannon as your Anthropic backend for the official CLI coding agent
  • ថ្មី Codex CLI support — full Responses API with multi-turn tool use for OpenAI's coding agent
  • បានកែលម្អ Anthropic streaming format fixes — proper content_block lifecycle, tool_use deltas, toolu_ prefixes
  • បានកែលម្អ Schema sanitization for Gemini — strips $schema, additionalProperties, $ref and other unsupported fields from tool schemas
v2.1.0
2025-01-03
  • ថ្មី បានបន្ថែមម៉ូដែល shannon-coder-1 សម្រាប់បញ្ចូល Claude Code CLI
  • ថ្មី ប្រព័ន្ធកូតាតាមការហៅសម្រាប់ម៉ូដែល Coder
  • បានកែលម្អ បានកែលម្អភាពទុកចិត្តនៃការហៅមុខងារ
v2.0.0
2024-12-15
  • ថ្មី បានបន្ថែមភាពឆបគ្នា Anthropic Messages API
  • ថ្មី ការប្រតិបត្តិឧបករណ៍ច្រើនជំហាន (ដល់ 10 ដង)
  • ថ្មី គាំទ្រទ្រង់ទ្រាយចម្លើយ JSON Schema
  • បានកែលម្អ បានកែលម្អការស្វែងរកវេបជាមួយការដកស្រង់កាន់តែប្រសើរ
v1.5.0
2024-11-20
  • ថ្មី បានបន្ថែមម៉ូដែល shannon-deep-dapo សម្រាប់ការគិតស្មុគស្មាញ
  • ថ្មី មុខងារ web_search ក្នុងស្រាប់
  • បានកែលម្អ កាត់បន្ថយពេលពន្យាពេលសម្រាប់ចម្លើយស្ទ្រីម
v1.0.0
2024-10-01
  • ថ្មី ការចេញផ្សាយ API ដំបូង
  • ថ្មី Endpoint chat completions ឆបគ្នា OpenAI
  • ថ្មី គាំទ្រការហៅមុខងារ
  • ថ្មី ស្ទ្រីមតាម Server-Sent Events

គន្លឹះ API របស់អ្នក

ការចូលដំណើរការ
ប្រើ Bearer token សម្រាប់ OpenAI ឬ X-API-Key + anthropic-version។
YOUR_API_KEY
ទទួលគន្លឹះ API របស់អ្នក

រក្សាគន្លឹះ API របស់អ្នកឲ្យសម្ងាត់។ ការបង្កើតឡើងវិញនឹងបង្កើតគន្លឹះថ្មី ហើយបញ្ឈប់គន្លឹះចាស់។

កំណែ: 1
ប្តូរចុងក្រោយ: មិនដែល
បានប្រើចុងក្រោយ: មិនដែល

ការប្រើប្រាស់របស់អ្នក

នៅពេលចូលគណនី អ្នកអាចមើលការប្រើ token និងស្វែងរកនៅលើទំព័រនេះ។

-- ការហៅ API
-- តូខិនដែលបានប្រើ

Shannon Coder (shannon-coder-1)

កូតាតាមការហៅសម្រាប់ Shannon Coder (shannon-coder-1)។ កំណត់ឡើងវិញរៀងរាល់ 4 ម៉ោង។

0 ការហៅដែលបានប្រើ
0 ការហៅដែលនៅសល់

រួចរាល់សម្រាប់ការបង្កើតមែនទេ?

ទទួលគន្លឹះ API របស់អ្នក ហើយចាប់ផ្តើមបង្កើតជាមួយ Shannon AI ថ្ងៃនេះ។

ទទួលគន្លឹះ API មើលតម្លៃ

ការស្វែងរកពេញនិយម:

សូមសាកពាក្យគន្លឹះផ្សេង
នាវីហ្គេត: ↑ ↓ ជ្រើសរើស: Enter បិទ: Esc