Skip to content

Error rendering prompt with jinja template: TypeError: Cannot read properties of undefined (reading 'type') #393

@fasthold

Description

@fasthold

LM Studio: 0.3.8
Platform: MacBook Pro M3 Pro
OS: macOS 15.1.1
Model: qwen2.5-coder-32b-instruct & deepseek-r1-distill-qwen-7b

Got the error below:

2025-01-26 19:45:53  [INFO] 
[LM STUDIO SERVER] Running chat completion on conversation with 2 messages.
2025-01-26 19:45:53  [INFO] 
[LM STUDIO SERVER] Streaming response...
2025-01-26 19:45:53 [DEBUG] 
[createJinjaMessagesInput] Ignoring image file part in user message due to missing image config
2025-01-26 19:45:53 [DEBUG] 
1 Error predicting: Error: Error rendering prompt with jinja template: TypeError: Cannot read properties of undefined (reading 'type')
    at /Applications/LM Studio.app/Contents/Resources/app/.webpack/lib/llmworker.js:9:61010
    at async _0x19f928.<computed> (/Applications/LM Studio.app/Contents/Resources/app/.webpack/lib/llmworker.js:9:56076)
    at async _0x47a04d.<computed> (/Applications/LM Studio.app/Contents/Resources/app/.webpack/lib/llmworker.js:9:81857)
    at async _0x2800dc.temp_createLlamaPredictionArgs (/Applications/LM Studio.app/Contents/Resources/app/.webpack/lib/llmworker.js:7:761918)
    at async _0x3ee58d.<computed>.predictTokens (/Applications/LM Studio.app/Contents/Resources/app/.webpack/lib/llmworker.js:9:43800)
    at async Object.predictTokens (/Applications/LM Studio.app/Contents/Resources/app/.webpack/lib/llmworker.js:14:10469)
    at async Object.handleMessage (/Applications/LM Studio.app/Contents/Resources/app/.webpack/lib/llmworker.js:14:1973)
2025-01-26 19:45:53 [ERROR] 
Error rendering prompt with jinja template: TypeError: Cannot read properties of undefined (reading 'type'). Error Data: n/a, Additional Data: n/a

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions