Urgent.News

What's breaking now, across thousands of outlets.

AI

Pointing the OpenAI Python and Node SDKs at a model with fewer refusals

Disclosure: I work on InterOdin, the API used in this tutorial. The pattern works for any OpenAI-compatible provider. Security scripts often hit a wall with general-purpose models: a request to explain a malware sample from your own incident, or to draft a detection rule, comes back as a refusal. If your code already uses the official OpenAI SDK, you can switch the model behind it with a base URL…

OpenAI's Python and Node.js Software Development Kits (SDKs) can be directed towards a model with fewer refusals, allowing for more successful responses. This can be achieved by modifying the base URL and API key in the SDK configuration. InterOdin, the API used in this tutorial, serves both Chat Completions and Responses. To utilize this setup, install the openai package using pip install openai for Python or npm install openai for JavaScript/TypeScript.

Configure the client by specifying the base URL as https://api.interodin.com/v1 and the API key from the environment variable INTERODIN_API_KEY. The code changes are minimal; simply update the model parameter to "odin-v1" when creating the completion or response. Responses API is stateless, meaning it doesn't store conversation history, images, files, or web search results.

However, your custom function tools will still work as expected. Errors from the SDKs, such as AuthenticationError, RateLimitError, or APIStatusError, will follow the usual pattern, with additional specifics provided in the error code field. Billing is handled on a prepaid credits basis, with no subscription required. It's important to remember that the Acceptable Use Policy still applies, and the maintained version of this guide can be found at https://docs.interodin.com/en/integrations/openai-sdk.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in AI

Anthropic Sets IPO Price at $83 as AI Market Faces Its First Public Test

Quick take Anthropic said the SEC declared its registration statement effective on Nov. 18. The $83 offering price does not establish Anthropic’s total equity value, which depends on shares…

  • Anthropic priced its IPO at $83 per share on November 18
  • Class A common stock trading begins on Nasdaq under ANT on November 19
  • Analyst sees IPO as barometer of investor bullishness toward AI companies

Run Mobilerun with local and cheap models Ollama, DeepSeek, Qwen, OpenRouter

Every step a phone agent takes is a model call. Read the screen, pick one action, tap, repeat. A simple task can be 10 of those. A test suite can be thousands.

  • Mobilerun framework works with local and cheap models
  • Instructions provided for Ollama, Qwen, DeepSeek, OpenRouter
  • Model performance depends on tasks, hardware, vision needs

More from Thursday 19 November →