Error rendering prompt with jinja template: "Cannot call something that is not a function: got UndefinedValue". This is usually an issue with the model's prompt template. If you are using a popular model, you can try to search the model under lmstudio-community, which will have fixed prompt templates. If you cannot find one, you are welcome to post this issue to our discord or issue tracker on GitHub. Alternatively, if you know how to write jinja templates, you can override the prompt template in My Models > model settings > Prompt Template. fixed: 在模型模板第一行貼上: {%- macro format_type_argument(type_arg) -%} {{- type_arg if type_arg is string else format_argument(type_arg) -}} {%- endmacro -%}