improved
New SDK's with breaking changes!
9 months ago by Anthony Diaz
We recently transitioned our SDK's from
@orquesta
to@orq-ai
across all platforms to align with our branding and focus on AI. This includes some breaking changes!
Python SDK
Installation
Before
pip install orquesta-sdk
After
pip install orq-ai-sdk
Usage
Before
from orquesta_sdk import Orquesta, OrquestaClientOptions
api_key = os.environ.get("ORQUESTA_API_KEY", "__API_KEY__")
options = OrquestaClientOptions(
api_key=api_key,
environment="production"
)
client = Orquesta(options)
After
import os
from orq_ai_sdk import OrqAI
client = OrqAI(
api_key=os.environ.get("ORQ_API_KEY", "__API_KEY__"),
environment="production"
)
Node SDK
Installation
Before
npm install @orquesta/node
yarn add @orquesta/node
After
npm install @orq-ai/node
yarn add @orq-ai/node
Usage
Before
import { createClient } from '@orquesta/node';
const client = createClient({
apiKey: 'orquesta-api-key',
environment: 'production',
});
After
import { createClient } from '@orq-ai/node';
const client = createClient({
apiKey: 'orquesta-api-key',
environment: 'production',
});