Skip to content

opencode + llama-swap + Qwen3-Coder-30B-A3B-Instruct-IQ4_NL #3754

@grigio

Description

@grigio

Description

The same llama-swap api works with OpenWebUI but not with opencode

llama-swap  | prompt eval time =   10519.50 ms /   198 tokens (   53.13 ms per token,    18.82 tokens per second)
llama-swap  |        eval time =     204.17 ms /     3 tokens (   68.06 ms per token,    14.69 tokens per second)
llama-swap  |       total time =   10723.67 ms /   201 tokens
llama-swap  | slot      release: id  0 | task 32 | stop processing: n_past = 201, truncated = 0
llama-swap  | srv  update_slots: all slots are idle
llama-swap  | srv  log_server_r: request: POST /v1/chat/completions 127.0.0.1 200
llama-swap  | [INFO] Request 192.168.1.83 "POST /v1/chat/completions HTTP/1.1" 200 601 "ai-sdk/openai-compatible/1.0.24 ai-sdk/provider-utils/3.0.14 runtime/bun/1.3.0" 10.770528487s
llama-swap  | got exception: {"code":500,"message":"Value is not callable: null at row 62, column 114:\n                {%- if json_key not in handled_keys %}\n                    {%- set normed_json_key = json_key | replace(\"-\", \"_\") | replace(\" \", \"_\") | replace(\"$\", \"\") %}\n                                                                                                                 ^\n                    {%- if param_fields[json_key] is mapping %}\n at row 62, column 21:\n                {%- if json_key not in handled_keys %}\n                    {%- set normed_json_key = json_key | replace(\"-\", \"_\") | replace(\" \", \"_\") | replace(\"$\", \"\") %}\n                    ^\n                    {%- if param_fields[json_key] is mapping %}\n at row 61, column 55:\n            {%- for json_key in param_fields %}\n                {%- if json_key not in handled_keys %}\n                                                      ^\n                    {%- set normed_json_key = json_key | replace(\"-\", \"_\") | replace(\" \", \"_\") | replace(\"$\", \"\") %}\n at row 61, column 17:\n            {%- for json_key in param_fields %}\n                {%- if json_key not in handled_keys %}\n                ^\n                    {%- set normed_json_key = json_key | replace(\"-\", \"_\") | replace(\" \", \"_\") | replace(\"$\", \"\") %}\n at row 60, column 48:\n            {%- set handled_keys = ['type', 'description', 'enum', 'required'] %}\n            {%- for json_key in param_fields %}\n                                               ^\n                {%- if json_key not in handled_keys %}\n at row 60, column 13:\n            {%- set handled_keys = ['type', 'description', 'enum', 'required'] %}\n            {%- for json_key in param_fields %}\n            ^\n                {%- if json_key not in handled_keys %}\n at row 49, column 80:\n        {{- '\\n<parameters>' }}\n        {%- for param_name, param_fields in tool.parameters.properties|items %}\n                                                                               ^\n            {{- '\\n<parameter>' }}\n at row 49, column 9:\n        {{- '\\n<parameters>' }}\n        {%- for param_name, param_fields in tool.parameters.properties|items %}\n        ^\n            {{- '\\n<parameter>' }}\n at row 42, column 29:\n    {{- \"<tools>\" }}\n    {%- for tool in tools %}\n                            ^\n        {%- if tool.function is defined %}\n at row 42, column 5:\n    {{- \"<tools>\" }}\n    {%- for tool in tools %}\n    ^\n        {%- if tool.function is defined %}\n at row 39, column 51:\n{%- endif %}\n{%- if tools is iterable and tools | length > 0 %}\n                                                  ^\n    {{- \"\\n\\nYou have access to the following functions:\\n\\n\" }}\n at row 39, column 1:\n{%- endif %}\n{%- if tools is iterable and tools | length > 0 %}\n^\n    {{- \"\\n\\nYou have access to the following functions:\\n\\n\" }}\n at row 1, column 69:\n{#- Copyright 2025-present the Unsloth team. All rights reserved. #}\n                                                                    ^\n{#- Licensed under the Apache License, Version 2.0 (the \"License\") #}\n","type":"server_error"}
llama-swap  | srv  log_server_r: request: POST /v1/chat/completions 127.0.0.1 500
llama-swap  | [INFO] Request 192.168.1.83 "POST /v1/chat/completions HTTP/1.1" 500 3198 "ai-sdk/openai-compatible/1.0.24 ai-sdk/provider-utils/3.0.14 runtime/bun/1.3.0" 7.46044ms

OpenCode version

No response

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions