feat(openrouter/tencent/hy3): add new models [bot]#1700
feat(openrouter/tencent/hy3): add new models [bot]#1700models-bot[bot] wants to merge 3 commits into
Conversation
|
/test-models |
Gateway test results
Successes (8)
Output
Output
Output
Output
Output
Output
Output
Output |
|
/test-models |
Gateway test results
Failures (1)
ErrorCode snippetfrom openai import OpenAI
client = OpenAI(api_key="***", base_url="https://internal.devtest.truefoundry.tech/api/llm")
tools = [
{
"type": "function",
"function": {
"name": "get_weather",
"description": "Get the current weather for a location.",
"parameters": {
"type": "object",
"properties": {
"location": {
"type": "string",
"description": "The city name, e.g. London",
},
},
"required": ["location"],
"additionalProperties": False,
},
"strict": True,
},
},
]
response = client.chat.completions.create(
model="test-v2-openrouter/tencent-hy3",
messages=[
{"role": "user", "content": "Use the get_weather tool to check the weather in London. You must call the tool, do not respond with plain text."},
],
tools=tools,
tool_choice="auto",
stream=True,
)
_tool_calls_made = False
for chunk in response:
if chunk.choices and len(chunk.choices) > 0:
delta = chunk.choices[0].delta
if delta.content is not None:
print(delta.content, end="", flush=True)
if delta.tool_calls:
_tool_calls_made = True
for _tc in delta.tool_calls:
if _tc.function:
print(_tc.function.arguments or "", end="", flush=True)
if not _tool_calls_made:
raise Exception("VALIDATION FAILED: tool-call stream - no tool calls received")
print("\nVALIDATION: tool-call stream SUCCESS")Successes (4)
Output
Output
Output
OutputSkipped (1)
Skip reason |
Auto-generated by model-addition-agent for
openrouter/tencent/hy3.Note
Low Risk
Declarative catalog-only change with no runtime or auth logic; low blast radius unless metadata (costs/limits) is wrong.
Overview
Adds a new OpenRouter provider definition for
tencent/hy3, registering the model for chat routing with token pricing (including cache-read input), a 262K context window, and 131K max output tokens.The entry marks thinking, function calling, prompt caching, and tool choice as supported, with default
temperature/top_pparams and a link to the OpenRouter model page as the source.Reviewed by Cursor Bugbot for commit ccb0fe6. Bugbot is set up for automated code reviews on this repo. Configure here.