GPT-3.5 token limit exceeded after adding new user turn

a rack of servers in a server room

Problem Description Symptoms and Impact During development of a multi‑turn chatbot that uses the OpenAI GPT‑3.5‑turbo model, the API began returning errors after adding a new user turn. Typical log entries looked like: 2024-09-14 10:22:31,842 ERROR openai.error.InvalidRequestError: This model’s maximum context length is 4097 tokens Traceback (most recent call last): File “app.py”, line 112, in … Read more

Google Gemini SAML assertion invalid error during inter‑service call

Google sign

Problem Description Microservices that run on GKE, Cloud Run, or Cloud Functions invoke the Google Gemini API using SAML‑based workload identity federation. During inter‑service calls the Gemini client returns: SAML Assertion is invalid: Expired or SAML Assertion is invalid: Audience mismatch These errors prevent the services from authenticating to Gemini, causing request failures such as … Read more

Claude API authentication failures after secret rotation in staging CI/CD

Abstract purple and silver liquid forms with reflections

Problem Description – Claude API Authentication Failures After Secret Rotation in Staging CI/CD During nightly staging deployments the integration test suite intermittently receives 401 Unauthorized – “Invalid API key” or 403 Forbidden – “API key expired or revoked” responses from the Anthropic Claude endpoint. The failure correlates with the automated secret‑rotation step that fetches a … Read more

GPT-4o RAG citation format error after adding GPU node

Openai logo with green and white cylindrical letters

Problem Description After adding a fourth GPU node to a distributed inference cluster for OpenAI GPT‑4o with Retrieval‑Augmented Generation (RAG), the citations field in the model response became malformed. Typical symptoms observed in production logs include: JSON parsing errors such as “Error parsing citation: unexpected token ””. Missing or truncated brackets in the citation array, … Read more

Admission controller rejection of GPT-4 pod missing securityContext in canary

a laptop computer sitting on top of a wooden table

Problem – Admission Controller Rejects GPT‑4 Canary Pods During a staged rollout of a new GPT‑4 inference service, the canary pods never reach the Running state. The Kubernetes API server returns a 403 error from the pod-security-admission webhook and a custom model‑policy webhook. Typical log excerpts look like: Error from server (Forbidden): admission webhook “pod-security-admission” … Read more

Google Gemini logprob NaN after network latency spike in hybrid cloud

Google logo neon light signage

Problem Description During inference with the Google Gemini model in a hybrid‑cloud deployment, the logprob field in the response payload intermittently contains NaN or null values. The symptom manifests as: Inconsistent token scoring – generated text appears correct, but downstream ranking logic that relies on log probabilities fails. API errors such as HTTP 400 with … Read more

DeepSeek collection creation fails with runtime exception after rolling deployment

A person holding a cell phone in their hand

Problem Description During a rolling deployment of DeepSeek on a 5‑node GKE cluster, API calls to /v1/collections started failing with a runtime exception. The failure manifested as: java.lang.RuntimeException: Failed to write collection to PostgreSQL at com.deepseek.service.CollectionService.create(CollectionService.java:112) Caused by: org.postgresql.util.PSQLException: Connection is closed at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:247) Additional logs showed HikariCP pool timeouts: HikariPool-1 – Connection is not … Read more

Google Gemini pods pending despite free A100/H100 GPUs in Kubernetes

a close up of a cell phone with buttons

Problem: Gemini Training Pods Remain Pending Despite Free A100/H100 GPUs In a production Vertex AI cluster that mixes NVIDIA A100 and H100 nodes, engineers observed that new gemini training pods never transition to Running. The scheduler reports: FailedScheduling: 0/6 nodes are available: 6 Insufficient nvidia.com/gpu. Other observed symptoms include: Pod events showing pod didn’t match … Read more

Google Gemini CRD validation failure on kind after operator install

computer screen showing google search

Problem – Gemini CRD Validation Failure on Kind After Operator Install When applying a GeminiModel or GeminiEndpoint custom resource to a local kind cluster, kubectl apply aborts with validation errors such as: error: error validating “gemini-model.yaml”: error validating data: ValidationError(GeminiModel.spec): missing required field “model” in io.k8s.api.core.v1.ConfigMap error: unable to recognize “gemini-deployment.yaml”: no matches for kind … Read more