Skip to content

feat(deepinfra): update model YAMLs [bot]#1736

Open
models-bot[bot] wants to merge 1 commit into
mainfrom
bot/update-deepinfra-20260710-174950
Open

feat(deepinfra): update model YAMLs [bot]#1736
models-bot[bot] wants to merge 1 commit into
mainfrom
bot/update-deepinfra-20260710-174950

Conversation

@models-bot

@models-bot models-bot Bot commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

Auto-generated by poc-agent for provider deepinfra.


Note

Low Risk
Metadata-only provider catalog changes with no code or pricing logic updates.

Overview
Updates three DeepInfra model YAMLs to match current provider metadata.

ByteDance/Seed-2.0-code now lists json_output under features, reflecting that structured JSON responses are supported (the file still has a stale comment saying json output is not supported).

meta-llama/Meta-Llama-3.1-8B-Instruct and nvidia/Nemotron-3-Nano-Omni-30B-A3B-Reasoning each gain deprecationDate: "2026-07-16", signaling planned sunset without changing costs, limits, or status in this diff.

Reviewed by Cursor Bugbot for commit 8f791dc. Bugbot is set up for automated code reviews on this repo. Configure here.

@github-actions

Copy link
Copy Markdown
Contributor

/test-models

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 8f791dc. Configure here.

- input_cost_per_token: 2e-8
output_cost_per_token: 5e-8
region: "*"
deprecationDate: "2026-07-16"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deprecation date without isDeprecated

Medium Severity

deprecationDate was added for these models, but isDeprecated: true was not. Other DeepInfra models with a deprecation date set the flag too, so downstream logic that keys off isDeprecated may not treat these as deprecated.

Additional Locations (1)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 8f791dc. Configure here.

@harshiv-26

Copy link
Copy Markdown
Collaborator

Gateway test results

  • Total: 20
  • Passed: 16
  • Failed: 1
  • Validation failed: 1
  • Errored: 0
  • Skipped: 2
  • Success rate: 88.89%
Provider Model Scenarios
deepinfra ByteDance/Seed-2.0-code success: tool-call, params:stream, tool-call:stream, params

failure: json-output

validation_failure: json-output:stream
deepinfra meta-llama/Meta-Llama-3.1-8B-Instruct success: tool-call, tool-call:stream, params, params:stream, json-output:stream, json-output
deepinfra nvidia/Nemotron-3-Nano-Omni-30B-A3B-Reasoning success: params, params:stream, tool-call:stream, tool-call, reasoning:stream, reasoning

skipped: json-output, json-output:stream
Failures (2)

deepinfra/ByteDance/Seed-2.0-code — json-output:stream (validation_failure)

Error
Traceback (most recent call last):
  File "/tmp/tmpgdwbwx3o/snippet.py", line 24, in <module>
    raise Exception("VALIDATION FAILED: json-output stream - no content received")
Exception: VALIDATION FAILED: json-output stream - no content received
Code snippet
from openai import OpenAI

client = OpenAI(api_key="***", base_url="https://internal.devtest.truefoundry.tech/api/llm")

response = client.chat.completions.create(
    model="test-v2-deepinfra/ByteDance-Seed-2.0-code",
    messages=[
        {"role": "user", "content": "List 3 colors with their hex codes in JSON."},
    ],
    response_format={"type": "json_object"},
    stream=True,
)
import json as _json

_accumulated = ""
for chunk in response:
    if chunk.choices and len(chunk.choices) > 0:
        delta = chunk.choices[0].delta
        if delta.content is not None:
            _accumulated += delta.content
            print(delta.content, end="", flush=True)

if not _accumulated:
    raise Exception("VALIDATION FAILED: json-output stream - no content received")

_json.loads(_accumulated)
print("\nVALIDATION: json-output stream SUCCESS")

deepinfra/ByteDance/Seed-2.0-code — json-output (failure)

Error
Traceback (most recent call last):
  File "/tmp/tmp0w2luwre/snippet.py", line 5, in <module>
    response = client.chat.completions.create(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/_utils/_utils.py", line 286, in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/resources/chat/completions/completions.py", line 1147, in create
    return self._post(
           ^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/_base_client.py", line 1259, in post
    return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/openai/_base_client.py", line 1047, in request
    raise self._make_status_error_from_response(err.response) from None
openai.InternalServerError: Error code: 500 - {'status': 'failure', 'message': 'Invalid response received from deepinfra: {"error":{"message":"{\\"error\\":{\\"code\\":\\"InvalidParameter\\",\\"message\\":\\"The parameter `response_format.type` specified in the request are not valid: `json_object` is not supported by this model. Request id: 0217837058663109601394fd5171fb187b1a439528361d3aa7dc8\\",\\"param\\":\\"response_format.type\\",\\"type\\":\\"BadRequest\\"}}","type":"api_error","param":null,"code":null}}', 'error': {'message': 'Invalid response received from deepinfra: {"error":{"message":"{\\"error\\":{\\"code\\":\\"InvalidParameter\\",\\"message\\":\\"The parameter `response_format.type` specified in the request are not valid: `json_object` is not supported by this model. Request id: 0217837058663109601394fd5171fb187b1a439528361d3aa7dc8\\",\\"param\\":\\"response_format.type\\",\\"type\\":\\"BadRequest\\"}}","type":"api_error","param":null,"code":null}}', 'type': 'APIError', 'code': '500'}, 'error_origin_level': 'api_error', 'provider': 'deepinfra'}
Code snippet
from openai import OpenAI

client = OpenAI(api_key="***", base_url="https://internal.devtest.truefoundry.tech/api/llm")

response = client.chat.completions.create(
    model="test-v2-deepinfra/ByteDance-Seed-2.0-code",
    messages=[
        {"role": "user", "content": "List 3 colors with their hex codes in JSON."},
    ],
    response_format={"type": "json_object"},
    stream=False,
)
import json as _json

_content = response.choices[0].message.content
print(_content)

if not _content:
    raise Exception("VALIDATION FAILED: json-output - response content is empty")

_json.loads(_content)
print("VALIDATION: json-output SUCCESS")
Successes (16)

deepinfra/nvidia/Nemotron-3-Nano-Omni-30B-A3B-Reasoning — params (success)

Output
The capital of France is Paris.

deepinfra/nvidia/Nemotron-3-Nano-Omni-30B-A3B-Reasoning — params:stream (success)

Output
The capital of France is **Paris**.

deepinfra/nvidia/Nemotron-3-Nano-Omni-30B-A3B-Reasoning — tool-call:stream (success)

Output
{"location": "London"}
VALIDATION: tool-call stream SUCCESS

deepinfra/nvidia/Nemotron-3-Nano-Omni-30B-A3B-Reasoning — tool-call (success)

Output
Function: get_weather
Arguments: {"location": "London"}
VALIDATION: tool-call SUCCESS

deepinfra/nvidia/Nemotron-3-Nano-Omni-30B-A3B-Reasoning — reasoning:stream (success)

Output
**Step 1 – Understand the order of operations**

Exponentiation is **right‑associative**.  
So  

\[
3^3^3^3 \;=\; 3^{\;(3^{\;(3^{3})})}.
\]

We must
... (truncated, 1898 chars omitted)

deepinfra/nvidia/Nemotron-3-Nano-Omni-30B-A3B-Reasoning — reasoning (success)

Output
**Step 1 – Know the order of operations**

In ordinary arithmetic the power operator “\(^\)” is **right‑associative**.  
That means  

\[
a^b^c = a^{
... (truncated, 2095 chars omitted)

deepinfra/meta-llama/Meta-Llama-3.1-8B-Instruct — tool-call (success)

Output
Function: get_weather
Arguments: {"location": "London"}
VALIDATION: tool-call SUCCESS

deepinfra/meta-llama/Meta-Llama-3.1-8B-Instruct — tool-call:stream (success)

Output
{"location": "London"}
VALIDATION: tool-call stream SUCCESS

deepinfra/meta-llama/Meta-Llama-3.1-8B-Instruct — params (success)

Output
The capital of France is Paris.

deepinfra/meta-llama/Meta-Llama-3.1-8B-Instruct — params:stream (success)

Output
The capital of France is Paris.

deepinfra/meta-llama/Meta-Llama-3.1-8B-Instruct — json-output:stream (success)

Output
{"red":"#FF0000","green":"#008000","blue":"#0000FF"}
VALIDATION: json-output stream SUCCESS

deepinfra/meta-llama/Meta-Llama-3.1-8B-Instruct — json-output (success)

Output
{"colors": ["red", "#FF0000"], "colors": ["blue", "#0000FF"], "colors": ["green", "#008000"]}
VALIDATION: json-output SUCCESS

deepinfra/ByteDance/Seed-2.0-code — tool-call (success)

Output
Function: get_weather
Arguments: {"location": "London"}
VALIDATION: tool-call SUCCESS

deepinfra/ByteDance/Seed-2.0-code — params:stream (success)

Output
The capital of France is **Paris**. It is also France's largest city, a global cultural, economic, and artistic hub, and home to iconic landmarks like
... (truncated, 59 chars omitted)

deepinfra/ByteDance/Seed-2.0-code — tool-call:stream (success)

Output
{"location": "London"}
VALIDATION: tool-call stream SUCCESS

deepinfra/ByteDance/Seed-2.0-code — params (success)

Output
The capital of France is **Paris**. A globally renowned cultural, economic, and political hub, Paris is France’s most populous city, located in the no
... (truncated, 125 chars omitted)
Skipped (2)

deepinfra/nvidia/Nemotron-3-Nano-Omni-30B-A3B-Reasoning — json-output (skipped)

Skip reason
Model returns invalid JSON; output includes backticks, extra whitespace, or similar artifacts

deepinfra/nvidia/Nemotron-3-Nano-Omni-30B-A3B-Reasoning — json-output:stream (skipped)

Skip reason
Model returns invalid JSON; output includes backticks, extra whitespace, or similar artifacts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant