Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
使用 OpenLIT 监控 AI Sonar OpenAI 兼容请求
/v1
pip install openlit openai
export API_KEY="sk-your-api-key"
import os import openlit from openai import OpenAI openlit.init() client = OpenAI( api_key=os.environ["API_KEY"], base_url="https://api.aisonar.dev/v1", ) response = client.chat.completions.create( model="claude-sonnet-5", messages=[{"role": "user", "content": "Hello from OpenLIT"}], )