Dataset Viewer
Duplicate
The dataset viewer is not available for this split.
Cannot load the dataset split (in streaming mode) to extract the first rows.
Error code:   StreamingRowsError
Exception:    ValueError
Message:      Expected object or value
Traceback:    Traceback (most recent call last):
                File "/src/services/worker/src/worker/utils.py", line 147, in get_rows_or_raise
                  return get_rows(
                      dataset=dataset,
                  ...<4 lines>...
                      column_names=column_names,
                  )
                File "/src/libs/libcommon/src/libcommon/utils.py", line 272, in decorator
                  return func(*args, **kwargs)
                File "/src/services/worker/src/worker/utils.py", line 127, in get_rows
                  rows_plus_one = list(itertools.islice(safe_iter(ds, dataset=dataset), rows_max_number + 1))
                File "/src/services/worker/src/worker/utils.py", line 483, in safe_iter
                  yield from ds.decode(False) if ds.features else ds
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2951, in __iter__
                  for key, example in ex_iterable:
                                      ^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2461, in __iter__
                  for key, pa_table in self._iter_arrow():
                                       ~~~~~~~~~~~~~~~~^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2486, in _iter_arrow
                  for key, pa_table in self.ex_iterable._iter_arrow():
                                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 547, in _iter_arrow
                  for key, pa_table in iterator:
                                       ^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 430, in _iter_arrow
                  for key, pa_table in self.generate_tables_fn(**gen_kwags):
                                       ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 281, in _generate_tables
                  examples = [ujson_loads(line) for line in batch.splitlines()]
                              ~~~~~~~~~~~^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/utils/json.py", line 20, in ujson_loads
                  return pd.io.json.ujson_loads(*args, **kwargs)
                         ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
              ValueError: Expected object or value

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

Modelflare API Examples

Small, documentation-oriented request sketches for the Modelflare AI API gateway.

Files

File Description
data/chat_completions_examples.jsonl Chat, models, Responses, image, and video request JSON lines (placeholder key only)
data/endpoint_map.json API family → path map from endpoints guide

Base URL

  • OpenAI-compatible: https://modelflare.dev/v1
  • Anthropic / Claude Code: ANTHROPIC_BASE_URL=https://modelflare.dev (not /v1)
  • Gemini CLI: GOOGLE_GEMINI_BASE_URL=https://modelflare.dev
  • Gemini native image: POST /v1/models/{model}:generateContent (Gemini CLI builds the same path under /v1beta, served only on modelflare.dev)

Auth: Authorization: Bearer YOUR_MODELFLARE_API_KEY (omit or placeholder in this dataset — never commit real keys).

Related Hub content

Notes

  • Example chat model ID in snippets: gpt-5.6-sol, the model used in the Modelflare Quickstart (it must be enabled on your group).
  • Image and video fields vary by model; see the model pages. Use a Smart API Key or a media group key for media.
  • The streaming line follows the OpenAI SDK stream=True pattern; the docs do not include a separate streaming example. Anthropic Messages are documented through Claude Code settings only, so no raw Anthropic request is included.
  • No prices or benchmarks in this dataset; check the console for live pricing.
Downloads last month
47

Spaces using Modelflare/api-examples 3

Collections including Modelflare/api-examples