Skip to content

client.alpha.infer() and client.llm.chat() both failing on testnet #171

@addnad

Description

@addnad

Bug Report

Issues Found

1. On-chain ONNX inference (client.alpha.infer) — no logs emitted
Transactions succeed (Status 1, gas consumed) but emit 0 logs, causing:
OpenGradientError: InferenceResult event not found in transaction logs

Tested with:

  • Iris classifier CID: -u43xg03ZFZRDPRGrPND--FN3Bs5kwwIG1_8XdtO9yM
  • Custom uploaded model CID: MXdc3sFWJlmtTYCGlGqWtmyCXq9Xon4x5TJJVPBsW3M
  • OpenGradient precompile: 0x00000000000000000000000000000000000000F4
  • Node API fallback: sdk-devnet.opengradient.ai returns HTTP 500

2. TEE LLM inference (client.llm.chat) — HTTP 500
llm.opengradient.ai/v1/chat/completions returns 500 on POST.
OPG Permit2 approval succeeds. Wallet has 0.1 OPG on Base Sepolia.

Environment

  • SDK version: 0.7.4
  • Wallet: 0x13F0775b1BA55280613159fAF52417885091ffC1
  • OG testnet balance: ~0.06 tokens
  • Base Sepolia OPG: 0.1 tokens

Expected

Both inference methods should return results.

Is this a known testnet issue? Is there a workaround?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions