SDKs
Node JS SDK
The FinetuneDB Node.js SDK serves as a drop-in replacement for the OpenAI SDK, preserving full compatibility while capturing all requests and responses, including streaming responses.
By logging your requests, you can build a comprehensive dataset for fine-tuning, gain deeper insights into model performance, and conduct thorough evaluations. This data-driven approach enables seamless transitions to custom models tailored to your specific use cases.
Installation
Usage
- Create a workspace at https://app.finetunedb.com
- Generate an API key from the workspace settings
- Find the project ID you want to log to
- Configure the FinetuneDB client as shown below
FAQ
What is the difference between the apiKey
and the projectId
?
The apiKey
is shared across a workspace, while each project within that workspace has a unique projectId
. This structure allows you to:
- Organize multiple projects under one workspace
- Use different fine-tuned models for specific tasks within each project
- Implement best practices by fine-tuning task-specific models
Does FinetuneDB affect OpenAI calls?
No, your OpenAI calls will continue to function normally regardless of FinetuneDB’s status. The SDK is designed to:
- Handle logging errors gracefully
- Operate independently of OpenAI inference
- Ensure no disruption to your OpenAI API interactions, even if FinetuneDB is misconfigured or unavailable