API Changelog
Overview
The API changelog provides updates and details on the latest changes to the API, including new features, improvements, and deprecated endpoints.
Changelog Entries
- 2023-01-10: Added support for multiple response formats.
- 2023-02-15: Improved error handling in chat completions.
- 2023-03-20: Deprecated legacy authentication methods.
Typescript Authentication
Getting Started
To authenticate, you need to set up your environment following the steps below:
- Install the SDK:
npm install my-sdk - Initialize the SDK:
import { MySdk } from 'my-sdk'; const sdk = new MySdk({ apiKey: 'YOUR_API_KEY' });
Project Setup
Prerequisites
Make sure you have Node.js installed.
Steps
- Create a new project:
mkdir my-project cd my-project npm init -y - Install necessary packages:
npm install axios
REST API
Endpoints
- GET /api/chat: Start a new chat session.
- POST /api/chat: Send a message to the chat.
Usage Example
const response = await sdk.chat.sendMessage('Hello!');
console.log(response);
Python Integration
Getting Started
Install the SDK for Python:
pip install my-sdk
Example
from my_sdk import MySdk
sdk = MySdk(api_key='YOUR_API_KEY')
response = sdk.chat.send_message('Hi there!')
print(response)
Integration with Claude & Codex
Supported Integrations
- Claude: You can send requests to Claude AI via the SDK.
- Codex: Use Codex for code generation and auto-completion.
Example
// Using Claude
const response = await sdk.claude.call('Generate code for a calculator.');
console.log(response);
Conclusion
Refer to our documentation for more detailed explanations and examples.