Skip to content
View prasadrandika's full-sized avatar
  • sri lanka
  • Joined Nov 18, 2026

Block or report prasadrandika

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Content in all repositories owned by your account will be closed.
Maximum 250 characters. Please don’t include any personal information such as legal names or email addresses. This note will only be visible to you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
prasadrandika/README.md

Hi, I'm Randika 👋

I help teams migrate apps off retiring AI models before they break.

Hire me: https://prasadrandika.github.io

OpenAI is shutting down GPT-4o, GPT-4o mini, GPT-4.1 and GPT-4.1 mini in the API on January 14, 2027. After that date, any app that still calls them will fail. I find every place an app depends on the old model, move it to the recommended replacement, test it, and document the change.

Migration case studies

1. Basic-Rag: PDF question-answering app (Python, LangChain)

  • Problem: The app answered questions with gpt-4o-mini, which will stop working on Jan 14, 2027.
  • What I found: The replacement, gpt-6-luna, is a reasoning model, and some reasoning models reject a temperature setting. I checked what the app's locked LangChain version sends for the new model: no temperature, so no package upgrade was needed.
  • Fix: I opened a PR switching the model to gpt-6-luna, tested against a mock OpenAI server. After that, the maintainer applied the model change himself (139efd3), so my PR now only fixes the outdated "GPT-4" mentions in the README.
  • Links: My fork, with migration notes · Pull request (merged)

2. youtube_transcription_api: punctuates YouTube transcripts (Python, Flask)

  • Problem: The API used gpt-4o-mini both to format text and, through tiktoken, to count tokens when splitting long transcripts.
  • What I found: ⚠️ Just changing the model name would have crashed the app. tiktoken.encoding_for_model("gpt-6-luna") raises KeyError, in both the pinned version (0.7.0) and the latest (0.14.0), so upgrading doesn't help.
  • Fix: Try the new model first, then fall back to o200k_base, the encoding the old model used. Chunk sizes stay exactly the same. The model name now lives in one setting. Tested end to end against a mock OpenAI server: 7 chunks, every request used the new model, and no words were lost.
  • Links: My fork · Pull request (open)

3. dsl: ProjectDiscovery's DSL engine (Go)

  • Problem: The llm_prompt helper defaulted to gpt-4o-mini.
  • What I found: The shared client in projectdiscovery/utils always sent temperature: 0, which may not work with the newest reasoning models. The maintainer confirmed it was a real problem.
  • Outcome: I opened an issue first. The maintainer fixed the temperature problem in utils v0.11.15 and opened a PR with my commit plus the utils bump. My commit is now part of ProjectDiscovery's dsl.
  • Links: Issue #381 (closed as completed) · Pull request #382 (merged)

Claude Sonnet 4.5 → claude-sonnet-5-5

Anthropic retires Claude Sonnet 4.5 on the Claude API on November 30, 2026 (model deprecations). The replacement, claude-sonnet-5-5, rejects temperature, top_p and top_k, and its replies can start with a thinking block.

  • OpenClacky (Ruby): moved the default Claude model to claude-sonnet-5-5 and checked that no sampling settings are sent: #737 (merged)
  • ai-scanner (Ruby, 0DIN by Mozilla): moved the Anthropic preset to claude-sonnet-5-5 and fixed response parsing for replies that start with a thinking block: #221 (merged)
  • kit (Go, Mark III Labs): moved all built-in defaults to claude-sonnet-5-5, with tests that fail if a default model is marked deprecated: #273 (open)

More migration work

  • WeClaw (Go): HTTP agents fell back to gpt-4o-mini. A PR with a test: #88 (open)
  • Nasiko (Go, Rust, Python): example agents and the LLM router default to gpt-4o-mini, and gpt-6-luna needs reasoning_effort: "none" for tool calls on Chat Completions. An issue to agree the scope: #369 (open)
  • openrisk (Go, ProjectDiscovery): hard-codes gpt-4o. An issue with a ready branch: #118 (open)

luna-check

I turned the problems from these migrations into luna-check, a small CLI and GitHub Action that finds code that will break at the shutdown: retiring model IDs, tiktoken.encoding_for_model() calls, and tool calls sent without reasoning_effort.

📝 Article: GPT-4o shuts down on Jan 14, 2027: what breaks when you switch to gpt-6-luna

How I work

  1. Confirm the replacement on OpenAI's official deprecations page.
  2. Find every place that uses the old model: code, tokenizers, config, docs.
  3. Make the smallest safe change, and only upgrade packages when needed.
  4. Test it, and say clearly what was and wasn't tested.
  5. Write a plain-English MIGRATION.md for the team.

Tools: Python · Go · JavaScript · OpenAI API · LangChain · tiktoken · Claude Code

Popular repositories Loading

  1. Basic-Rag Basic-Rag Public

    Forked from gurezende/Basic-Rag

    Creating a LLM Powered PDF Reader with RAG

    Python

  2. youtube_transcription_api youtube_transcription_api Public

    Forked from thinkingkoala/youtube_transcription_api

    Python

  3. prasadrandika prasadrandika Public

    Profile README

  4. dsl dsl Public

    Forked from projectdiscovery/dsl

    DSL engine

    Go

  5. nasiko nasiko Public

    Forked from Nasiko-Labs/nasiko

    The Open Runtime for AI Agents

    Rust

  6. weclaw weclaw Public

    Forked from fastclaw-ai/weclaw

    Connect to any agents with WeChat ClawBot.

    Go