Skip to content

feat(cohere/north-mini-code-1-0): add new models [bot]#1318

Merged
harshiv-26 merged 6 commits into
mainfrom
bot/add-cohere-north-mini-code-1-0-20260609-182235
Jun 10, 2026
Merged

feat(cohere/north-mini-code-1-0): add new models [bot]#1318
harshiv-26 merged 6 commits into
mainfrom
bot/add-cohere-north-mini-code-1-0-20260609-182235

Conversation

@models-bot

@models-bot models-bot Bot commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Auto-generated by model-addition-agent for cohere/north-mini-code-1-0.


Note

Low Risk
Additive model metadata only; no runtime, auth, or routing logic changes.

Overview
Adds a new Cohere provider catalog entry for north-mini-code-1-0, registering it as an active serverless chat model with text in/out.

The definition sets 256k context and 64k max output, enables tool_choice and function_calling, and explicitly notes json_output is not supported. Pricing is listed as 0.0 per input/output token (region *), with a Hugging Face source link.

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

Comment thread providers/cohere/north-mini-code-1-0.yaml Outdated
@github-actions

github-actions Bot commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

/test-models

@harshiv-26

Copy link
Copy Markdown
Collaborator

Gateway test results

  • Total: 0
  • Passed: 0
  • Failed: 0
  • Validation failed: 0
  • Errored: 0
  • Skipped: 0
  • Success rate: 0.0%
Provider Model Scenarios

@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 and found 2 potential issues.

There are 3 total unresolved issues (including 1 from previous review).

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 b93e60b. Configure here.

Comment thread providers/cohere/north-mini-code-1-0.yaml
Comment thread providers/cohere/north-mini-code-1-0.yaml Outdated
@github-actions

Copy link
Copy Markdown
Contributor

/test-models

@harshiv-26

Copy link
Copy Markdown
Collaborator

Gateway test results

  • Total: 6
  • Passed: 0
  • Failed: 1
  • Validation failed: 0
  • Errored: 5
  • Skipped: 0
  • Success rate: 0.0%
Provider Model Scenarios
cohere north-mini-code-1-0 failure: params

error: tool-call, tool-call:stream, json-output, json-output:stream, params:stream
Failures (6)

cohere/north-mini-code-1-0 — tool-call (error)

Error
Endpoint returned no snippets

cohere/north-mini-code-1-0 — tool-call:stream (error)

Error
Endpoint returned no snippets

cohere/north-mini-code-1-0 — json-output (error)

Error
Endpoint returned no snippets

cohere/north-mini-code-1-0 — json-output:stream (error)

Error
Endpoint returned no snippets

cohere/north-mini-code-1-0 — params:stream (error)

Error
Endpoint returned empty snippet

cohere/north-mini-code-1-0 — params (failure)

Error
Traceback (most recent call last):
  File "/tmp/tmph_bi9zzr/snippet.py", line 5, in <module>
    response = client.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/completions.py", line 541, 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.NotFoundError: Error code: 404 - {'status': 'failure', 'message': 'cohere error: Generate API was removed on September 15 2025. Please migrate to Chat API. See https://docs.cohere.com/docs/migrating-from-cogenerate-to-cochat for details.', 'error': {'message': 'cohere error: Generate API was removed on September 15 2025. Please migrate to Chat API. See https://docs.cohere.com/docs/migrating-from-cogenerate-to-cochat for details.', 'type': 'APIError', 'code': '404'}, 'error_origin_level': 'api_error', 'provider': 'cohere'}
Code snippet
from openai import OpenAI

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

response = client.completions.create(
    model="test-v2-cohere/north-mini-code-1-0",
    prompt="What is the capital of France?",
    max_tokens=256,
    temperature=0.7,
)

print(response.choices[0].text)

@github-actions

Copy link
Copy Markdown
Contributor

/test-models

@harshiv-26

Copy link
Copy Markdown
Collaborator

Gateway test results

  • Total: 6
  • Passed: 4
  • Failed: 2
  • Validation failed: 0
  • Errored: 0
  • Skipped: 0
  • Success rate: 66.67%
Provider Model Scenarios
cohere north-mini-code-1-0 success: tool-call:stream, params, params:stream, tool-call

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

cohere/north-mini-code-1-0 — json-output (failure)

Error
Traceback (most recent call last):
  File "/tmp/tmp6fvldh9c/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.BadRequestError: Error code: 400 - {'status': 'failure', 'message': 'cohere error: invalid request: response_format is not supported with the specified model.', 'error': {'message': 'cohere error: invalid request: response_format is not supported with the specified model.', 'type': 'APIError', 'code': '400'}, 'error_origin_level': 'api_error', 'provider': 'cohere'}
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-cohere/north-mini-code-1-0",
    messages=[
        {"role": "system", "content": "You are a helpful assistant. Respond in JSON format."},
        {"role": "user", "content": "Hi"},
        {"role": "assistant", "content": "Hi, how can I help you"},
        {"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")

cohere/north-mini-code-1-0 — json-output:stream (failure)

Error
Traceback (most recent call last):
  File "/tmp/tmp712lvg_v/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.BadRequestError: Error code: 400 - {'status': 'failure', 'message': 'cohere error: invalid request: response_format is not supported with the specified model.', 'error': {'message': 'cohere error: invalid request: response_format is not supported with the specified model.', 'type': 'APIError', 'code': '400'}, 'error_origin_level': 'api_error', 'provider': 'cohere'}
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-cohere/north-mini-code-1-0",
    messages=[
        {"role": "system", "content": "You are a helpful assistant. Respond in JSON format."},
        {"role": "user", "content": "Hi"},
        {"role": "assistant", "content": "Hi, how can I help you"},
        {"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")
Successes (4)

cohere/north-mini-code-1-0 — tool-call:stream (success)

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

cohere/north-mini-code-1-0 — params (success)

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

cohere/north-mini-code-1-0 — params:stream (success)

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

cohere/north-mini-code-1-0 — tool-call (success)

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

@github-actions

Copy link
Copy Markdown
Contributor

/test-models

@harshiv-26 harshiv-26 enabled auto-merge (squash) June 10, 2026 06:25
@github-actions

Copy link
Copy Markdown
Contributor

/test-models

@harshiv-26

Copy link
Copy Markdown
Collaborator

Gateway test results

  • Total: 4
  • Passed: 4
  • Failed: 0
  • Validation failed: 0
  • Errored: 0
  • Skipped: 0
  • Success rate: 100.0%
Provider Model Scenarios
cohere north-mini-code-1-0 success: params:stream, params, tool-call, tool-call:stream
Successes (4)

cohere/north-mini-code-1-0 — params:stream (success)

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

cohere/north-mini-code-1-0 — params (success)

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

cohere/north-mini-code-1-0 — tool-call (success)

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

cohere/north-mini-code-1-0 — tool-call:stream (success)

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

@harshiv-26 harshiv-26 merged commit cfb3329 into main Jun 10, 2026
8 checks passed
@harshiv-26 harshiv-26 deleted the bot/add-cohere-north-mini-code-1-0-20260609-182235 branch June 10, 2026 06:26
@harshiv-26

Copy link
Copy Markdown
Collaborator

Gateway test results

  • Total: 4
  • Passed: 4
  • Failed: 0
  • Validation failed: 0
  • Errored: 0
  • Skipped: 0
  • Success rate: 100.0%
Provider Model Scenarios
cohere north-mini-code-1-0 success: params:stream, params, tool-call, tool-call:stream
Successes (4)

cohere/north-mini-code-1-0 — params:stream (success)

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

cohere/north-mini-code-1-0 — params (success)

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

cohere/north-mini-code-1-0 — tool-call (success)

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

cohere/north-mini-code-1-0 — tool-call:stream (success)

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

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