npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@artemiskit/adapter-openai

v0.1.12

Published

OpenAI and Azure OpenAI adapter for ArtemisKit LLM evaluation toolkit

Downloads

197

Readme

@artemiskit/adapter-openai

OpenAI and Azure OpenAI adapter for ArtemisKit LLM evaluation toolkit.

Installation

npm install @artemiskit/adapter-openai
# or
bun add @artemiskit/adapter-openai

Overview

This adapter provides connectivity to:

  • OpenAI API - GPT-5.2, GPT-4.1, GPT-4o, and more
  • Azure OpenAI Service - Azure-hosted OpenAI models

Usage

With CLI

Configure in artemis.config.yaml:

# OpenAI
provider: openai
model: gpt-4.1

providers:
  openai:
    apiKey: ${OPENAI_API_KEY}
# Azure OpenAI
provider: azure-openai
model: gpt-4o

providers:
  azure-openai:
    apiKey: ${AZURE_OPENAI_API_KEY}
    resourceName: my-openai-resource
    deploymentName: gpt-4o-deployment
    apiVersion: "2024-02-15-preview"

Programmatic - OpenAI

import { OpenAIAdapter } from '@artemiskit/adapter-openai';

const adapter = new OpenAIAdapter({
  provider: 'openai',
  apiKey: process.env.OPENAI_API_KEY,
  defaultModel: 'gpt-4.1',
});

const result = await adapter.generate({
  prompt: 'Hello, how are you?',
  model: 'gpt-4.1',
});

console.log(result.text);

Programmatic - Azure OpenAI

import { OpenAIAdapter } from '@artemiskit/adapter-openai';

const azureAdapter = new OpenAIAdapter({
  provider: 'azure-openai',
  apiKey: process.env.AZURE_OPENAI_API_KEY,
  resourceName: 'my-openai-resource',
  deploymentName: 'gpt-4o-deployment',
  apiVersion: '2024-02-15-preview',
});

const result = await azureAdapter.generate({
  prompt: 'Hello, how are you?',
  model: 'gpt-4o-deployment', // Use your deployment name
});

console.log(result.text);

Configuration Options

OpenAI

| Option | Type | Required | Description | |--------|------|----------|-------------| | provider | 'openai' | Yes | Provider identifier | | apiKey | string | Yes | OpenAI API key | | defaultModel | string | No | Default model to use | | baseUrl | string | No | Custom API base URL | | organization | string | No | OpenAI organization ID | | timeout | number | No | Request timeout (ms) | | maxRetries | number | No | Max retry attempts |

Azure OpenAI

| Option | Type | Required | Description | |--------|------|----------|-------------| | provider | 'azure-openai' | Yes | Provider identifier | | apiKey | string | Yes | Azure OpenAI API key | | resourceName | string | Yes | Azure resource name | | deploymentName | string | Yes | Model deployment name | | apiVersion | string | Yes | API version | | timeout | number | No | Request timeout (ms) | | maxRetries | number | No | Max retry attempts |

Environment Variables

# OpenAI
OPENAI_API_KEY=sk-...

# Azure OpenAI
AZURE_OPENAI_API_KEY=...
AZURE_OPENAI_RESOURCE=my-resource
AZURE_OPENAI_DEPLOYMENT=my-deployment
AZURE_OPENAI_API_VERSION=2024-02-15-preview

Supported Models

OpenAI

| Model | Description | |-------|-------------| | gpt-5.2 | Latest flagship model for professional work | | gpt-5.1 | Previous flagship in GPT-5 series | | gpt-4.1 | High performance with 1M token context | | gpt-4.1-mini | Smaller, faster version of GPT-4.1 | | gpt-4.1-nano | Fastest, most cost-efficient | | gpt-4o | Multimodal model (text + vision) | | gpt-4o-mini | Smaller multimodal model |

Azure OpenAI

Any model deployed to your Azure OpenAI resource. Common deployments include GPT-4o, GPT-4, and GPT-3.5-turbo.

Related Packages

License

Apache-2.0