Skip to content

Error: LM Studio Devstral-Small - Unknown error #11148

@ignosaur

Description

@ignosaur

Error Details

Model: LM Studio Devstral-Small
Provider: lmstudio
Status Code: N/A

Error Output

Connection error.

Additional Context
Please add any additional context about the error here
Error handling webview message: {
"msg": {
"messageId": "d95047ef-b84a-4722-ab42-7c696fdd8a27",
"messageType": "llm/streamChat",
"data": {
"completionOptions": {
"tools": [
{
"type": "function",
"displayTitle": "Read File",
"wouldLikeTo": "read {{{ filepath }}}",
"isCurrently": "reading {{{ filepath }}}",
"hasAlready": "read {{{ filepath }}}",
"readonly": true,
"isInstant": true,
"group": "Built-In",
"function": {
"name": "read_file",
"description": "Use this tool if you need to view the contents of an existing file.",
"parameters": {
"type": "object",
"required": [
"filepath"
],
"properties": {
"filepath": {
"type": "string",
"description": "The path of the file to read. Can be a relative path (from workspace root), absolute path, tilde path (/...), or file:// URI"
}
}
}
},
"systemMessageDescription": {
"prefix": "To read a file with a known filepath, use the read_file tool. For example, to read a file located at 'path/to/file.txt', you would respond with this:",
"exampleArgs": [
[
"filepath",
"path/to/the_file.txt"
]
]
},
"defaultToolPolicy": "allowedWithoutPermission",
"toolCallIcon": "DocumentIcon"
},
{
"type": "function",
"displayTitle": "Create New File",
"wouldLikeTo": "create {{{ filepath }}}",
"isCurrently": "creating {{{ filepath }}}",
"hasAlready": "created {{{ filepath }}}",
"group": "Built-In",
"readonly": false,
"isInstant": true,
"function": {
"name": "create_new_file",
"description": "Create a new file. Only use this when a file doesn't exist and should be created",
"parameters": {
"type": "object",
"required": [
"filepath",
"contents"
],
"properties": {
"filepath": {
"type": "string",
"description": "The path where the new file should be created. Can be a relative path (from workspace root), absolute path, tilde path (
/...), or file:// URI."
},
"contents": {
"type": "string",
"description": "The contents to write to the new file"
}
}
}
},
"defaultToolPolicy": "allowedWithPermission",
"systemMessageDescription": {
"prefix": "To create a NEW file, use the create_new_file tool with the relative filepath and new contents. For example, to create a file located at 'path/to/file.txt', you would respond with:",
"exampleArgs": [
[
"filepath",
"path/to/the_file.txt"
],
[
"contents",
"Contents of the file"
]
]
}
},
{
"type": "function",
"displayTitle": "Run Terminal Command",
"wouldLikeTo": "run the following terminal command:",
"isCurrently": "running the following terminal command:",
"hasAlready": "ran the following terminal command:",
"readonly": false,
"group": "Built-In",
"function": {
"name": "run_terminal_command",
"description": "Run a terminal command in the current directory.\nThe shell is not stateful and will not remember any previous commands. When a command is run in the background ALWAYS suggest using shell commands to stop it; NEVER suggest using Ctrl+C. When suggesting subsequent shell commands ALWAYS format them in shell command blocks. Do NOT perform actions requiring special/admin privileges. IMPORTANT: To edit files, use Edit/MultiEdit tools instead of bash commands (sed, awk, etc). Choose terminal commands and scripts optimized for linux and x64 and shell /bin/bash.",
"parameters": {
"type": "object",
"required": [
"command"
],
"properties": {
"command": {
"type": "string",
"description": "The command to run. This will be passed directly into the IDE shell."
},
"waitForCompletion": {
"type": "boolean",
"description": "Whether to wait for the command to complete before returning. Default is true. Set to false to run the command in the background. Set to true to run the command in the foreground and wait to collect the output."
}
}
}
},
"defaultToolPolicy": "allowedWithPermission",
"systemMessageDescription": {
"prefix": "To run a terminal command, use the run_terminal_command tool\nThe shell is not stateful and will not remember any previous commands. When a command is run in the background ALWAYS suggest using shell commands to stop it; NEVER suggest using Ctrl+C. When suggesting subsequent shell commands ALWAYS format them in shell command blocks. Do NOT perform actions requiring special/admin privileges. IMPORTANT: To edit files, use Edit/MultiEdit tools instead of bash commands (sed, awk, etc). Choose terminal commands and scripts optimized for linux and x64 and shell /bin/bash.\nYou can also optionally include the waitForCompletion argument set to false to run the command in the background. \nFor example, to see the git log, you could respond with:",
"exampleArgs": [
[
"command",
"git log"
]
]
}
},
{
"type": "function",
"displayTitle": "Glob File Search",
"wouldLikeTo": "search for files like "{{{ pattern }}}"",
"isCurrently": "searching for files like "{{{ pattern }}}"",
"hasAlready": "searched for files like "{{{ pattern }}}"",
"readonly": true,
"isInstant": true,
"group": "Built-In",
"function": {
"name": "file_glob_search",
"description": "Search for files recursively in the project using glob patterns. Supports ** for recursive directory search. Will not show many build, cache, secrets dirs/files (can use ls tool instead). Output may be truncated; use targeted patterns",
"parameters": {
"type": "object",
"required": [
"pattern"
],
"properties": {
"pattern": {
"type": "string",
"description": "Glob pattern for file path matching"
}
}
}
},
"defaultToolPolicy": "allowedWithoutPermission",
"systemMessageDescription": {
"prefix": "To return a list of files based on a glob search pattern, use the file_glob_search tool",
"exampleArgs": [
[
"pattern",
"*.py"
]
]
},
"toolCallIcon": "MagnifyingGlassIcon"
},
{
"type": "function",
"displayTitle": "View Diff",
"wouldLikeTo": "view the git diff",
"isCurrently": "getting the git diff",
"hasAlready": "viewed the git diff",
"readonly": true,
"isInstant": true,
"group": "Built-In",
"function": {
"name": "view_diff",
"description": "View the current diff of working changes",
"parameters": {
"type": "object",
"properties": {}
}
},
"systemMessageDescription": {
"prefix": "To view the current git diff, use the view_diff tool. This will show you the changes made in the working directory compared to the last commit."
},
"defaultToolPolicy": "allowedWithoutPermission",
"toolCallIcon": "CodeBracketIcon"
},
{
"type": "function",
"displayTitle": "Read Currently Open File",
"wouldLikeTo": "read the current file",
"isCurrently": "reading the current file",
"hasAlready": "read the current file",
"readonly": true,
"isInstant": true,
"group": "Built-In",
"function": {
"name": "read_currently_open_file",
"description": "Read the currently open file in the IDE. If the user seems to be referring to a file that you can't see, or is requesting an action on content that seems missing, try using this tool.",
"parameters": {
"type": "object",
"properties": {}
}
},
"defaultToolPolicy": "allowedWithPermission",
"systemMessageDescription": {
"prefix": "To view the user's currently open file, use the read_currently_open_file tool.\nIf the user is asking about a file and you don't see any code, use this to check the current file"
},
"toolCallIcon": "DocumentTextIcon"
},
{
"type": "function",
"displayTitle": "ls",
"wouldLikeTo": "list files in {{{ dirPath }}}",
"isCurrently": "listing files in {{{ dirPath }}}",
"hasAlready": "listed files in {{{ dirPath }}}",
"readonly": true,
"isInstant": true,
"group": "Built-In",
"function": {
"name": "ls",
"description": "List files and folders in a given directory",
"parameters": {
"type": "object",
"properties": {
"dirPath": {
"type": "string",
"description": "The directory path. Can be relative to project root, absolute path, tilde path (~/...), or file:// URI. Use forward slash paths"
},
"recursive": {
"type": "boolean",
"description": "If true, lists files and folders recursively. To prevent unexpected large results, use this sparingly"
}
}
}
},
"defaultToolPolicy": "allowedWithoutPermission",
"systemMessageDescription": {
"prefix": "To list files and folders in a given directory, call the ls tool with "dirPath" and "recursive". For example:",
"exampleArgs": [
[
"dirPath",
"path/to/dir"
],
[
"recursive",
"false"
]
]
},
"toolCallIcon": "FolderIcon"
},
{
"type": "function",
"displayTitle": "Read URL",
"wouldLikeTo": "fetch {{{ url }}}",
"isCurrently": "fetching {{{ url }}}",
"hasAlready": "fetched {{{ url }}}",
"readonly": true,
"isInstant": true,
"group": "Built-In",
"function": {
"name": "fetch_url_content",
"description": "Can be used to view the contents of a website using a URL. Do NOT use this for files.",
"parameters": {
"type": "object",
"required": [
"url"
],
"properties": {
"url": {
"type": "string",
"description": "The URL to read"
}
}
}
},
"defaultToolPolicy": "allowedWithPermission",
"systemMessageDescription": {
"prefix": "To fetch the content of a URL, use the fetch_url_content tool. For example, to read the contents of a webpage, you might respond with:",
"exampleArgs": [
[
"url",
"https://example.com"
]
]
},
"toolCallIcon": "GlobeAltIcon"
},
{
"type": "function",
"displayTitle": "Read Skill",
"wouldLikeTo": "read skill {{{ skillName }}}",
"isCurrently": "reading skill {{{ skillName }}}",
"hasAlready": "read skill {{{ skillName }}}",
"readonly": true,
"isInstant": true,
"group": "Built-In",
"function": {
"name": "read_skill",
"description": "\nUse this tool to read the content of a skill by its name. Skills contain detailed instructions for specific tasks. The skill name should match one of the available skills listed below: \n",
"parameters": {
"type": "object",
"required": [
"skillName"
],
"properties": {
"skillName": {
"type": "string",
"description": "The name of the skill to read. This should match the name from the available skills."
}
}
}
}
},
{
"type": "function",
"displayTitle": "Search Web",
"wouldLikeTo": "search the web for "{{{ query }}}"",
"isCurrently": "searching the web for "{{{ query }}}"",
"hasAlready": "searched the web for "{{{ query }}}"",
"readonly": true,
"group": "Built-In",
"function": {
"name": "search_web",
"description": "Performs a web search, returning top results. Use this tool sparingly - only for questions that require specialized, external, and/or up-to-date knowledege. Common programming questions do not require web search.",
"parameters": {
"type": "object",
"required": [
"query"
],
"properties": {
"query": {
"type": "string",
"description": "The natural language search query"
}
}
}
},
"defaultToolPolicy": "allowedWithoutPermission",
"systemMessageDescription": {
"prefix": "To search the web, use the search_web tool with a natural language query. For example, to search for the current weather, you would respond with:",
"exampleArgs": [
[
"query",
"What is the current weather in San Francisco?"
]
]
},
"toolCallIcon": "GlobeAltIcon"
},
{
"type": "function",
"displayTitle": "Edit File",
"wouldLikeTo": "edit {{{ filepath }}}",
"isCurrently": "editing {{{ filepath }}}",
"hasAlready": "edited {{{ filepath }}}",
"group": "Built-In",
"readonly": false,
"isInstant": false,
"function": {
"name": "edit_existing_file",
"description": "Use this tool to edit an existing file. If you don't know the contents of the file, read it first.\n When addressing code modification requests, present a concise code snippet that\n emphasizes only the necessary changes and uses abbreviated placeholders for\n unmodified sections. For example:\n\n language /path/to/file\n // ... existing code ...\n\n {{ modified code here }}\n\n // ... existing code ...\n\n {{ another modification }}\n\n // ... rest of code ...\n \n\n In existing files, you should always restate the function or class that the snippet belongs to:\n\n language /path/to/file\n // ... existing code ...\n\n function exampleFunction() {\n // ... existing code ...\n\n {{ modified code here }}\n\n // ... rest of function ...\n }\n\n // ... rest of code ...\n \n\n Since users have access to their complete file, they prefer reading only the\n relevant modifications. It's perfectly acceptable to omit unmodified portions\n at the beginning, middle, or end of files using these "lazy" comments. Only\n provide the complete file when explicitly requested. Include a concise explanation\n of changes unless the user specifically asks for code only.\n\nThis tool CANNOT be called in parallel with any other tools, including itself",
"parameters": {
"type": "object",
"required": [
"filepath",
"changes"
],
"properties": {
"filepath": {
"type": "string",
"description": "The path of the file to edit, relative to the root of the workspace."
},
"changes": {
"type": "string",
"description": "Any modifications to the file, showing only needed changes. Do NOT wrap this in a codeblock or write anything besides the code changes. In larger files, use brief language-appropriate placeholders for large unmodified sections, e.g. '// ... existing code ...'"
}
}
}
},
"defaultToolPolicy": "allowedWithPermission",
"systemMessageDescription": {
"prefix": "To edit an EXISTING file, use the edit_existing_file tool with\n- filepath: the relative filepath to the file.\n- changes: Any modifications to the file, showing only needed changes. Do NOT wrap this in a codeblock or write anything besides the code changes. In larger files, use brief language-appropriate placeholders for large unmodified sections, e.g. '// ... existing code ...'\nOnly use this tool if you already know the contents of the file. Otherwise, use the read_file or read_currently_open_file tool to read it first.\nFor example:",
"exampleArgs": [
[
"filepath",
"path/to/the_file.ts"
],
[
"changes",
"// ... existing code ...\nfunction subtract(a: number, b: number): number {\n return a - b;\n}\n// ... rest of code ..."
]
]
}
},
{
"type": "function",
"displayTitle": "Find and Replace",
"wouldLikeTo": "edit {{{ filepath }}}",
"isCurrently": "editing {{{ filepath }}}",
"hasAlready": "edited {{{ filepath }}}",
"group": "Built-In",
"readonly": false,
"isInstant": false,
"function": {
"name": "single_find_and_replace",
"description": "Performs exact string replacements in a file.\n\nIMPORTANT:\n- ALWAYS use the read_file tool just before making edits, to understand the file's up-to-date contents and context. The user can also edit the file while you are working with it.\n- This tool CANNOT be called in parallel with any other tools, including itself\n- When editing text from read_file tool output, ensure you preserve exact whitespace/indentation.\n- Only use emojis if the user explicitly requests it. Avoid adding emojis to files unless asked.\n- Use replace_all for replacing and renaming strings across the file. This parameter is useful if you want to rename a variable, for instance.\n\nWARNINGS:\n- When not using replace_all, the edit will FAIL if old_string is not unique in the file. Either provide a larger string with more surrounding context to make it unique or use replace_all to change every instance of old_string.\n- The edit will likely fail if you have not recently used the read_file tool to view up-to-date file contents.",
"parameters": {
"type": "object",
"required": [
"filepath",
"old_string",
"new_string"
],
"properties": {
"filepath": {
"type": "string",
"description": "The path to the file to modify, relative to the root of the workspace"
},
"old_string": {
"type": "string",
"description": "The text to replace - must be exact including whitespace/indentation"
},
"new_string": {
"type": "string",
"description": "The text to replace it with (MUST be different from old_string)"
},
"replace_all": {
"type": "boolean",
"description": "Replace all occurrences of old_string (default false)"
}
}
}
},
"systemMessageDescription": {
"prefix": "To perform exact string replacements in files, use the single_find_and_replace tool with a filepath (relative to the root of the workspace) and the strings to find and replace.\n\n For example, you could respond with:",
"exampleArgs": [
[
"filepath",
"path/to/file.ts"
],
[
"old_string",
"const oldVariable = 'value'"
],
[
"new_string",
"const newVariable = 'updated'"
],
[
"replace_all",
"false"
]
]
},
"defaultToolPolicy": "allowedWithPermission"
},
{
"type": "function",
"displayTitle": "Grep Search",
"wouldLikeTo": "search for "{{{ query }}}"",
"isCurrently": "searching for "{{{ query }}}"",
"hasAlready": "searched for "{{{ query }}}"",
"readonly": true,
"isInstant": true,
"group": "Built-In",
"function": {
"name": "grep_search",
"description": "Performs a regular expression (regex) search over the repository using ripgrep. Will not include results for many build, cache, secrets dirs/files. Output may be truncated, so use targeted queries",
"parameters": {
"type": "object",
"required": [
"query"
],
"properties": {
"query": {
"type": "string",
"description": "The regex pattern to search for within file contents. Use regex with alternation (e.g., 'word1|word2|word3') or character classes to find multiple potential words in a single search."
}
}
}
},
"defaultToolPolicy": "allowedWithoutPermission",
"systemMessageDescription": {
"prefix": "To perform a grep search within the project, call the grep_search tool with the query pattern to match. For example:",
"exampleArgs": [
[
"query",
".main_services."
]
]
},
"toolCallIcon": "MagnifyingGlassIcon"
}
],
"reasoning": false
},
"title": "LM Studio Devstral-Small",
"messages": [
{
"role": "system",
"content": "<important_rules>\n You are in agent mode.\n\n If you need to use multiple tools, you can call multiple read-only tools simultaneously.\n\n Always include the language and file name in the info string when you write code blocks.\n If you are editing "src/main.py" for example, your code block should start with 'python src/main.py'\n\n\nFor larger codeblocks (>20 lines), use brief language-appropriate placeholders for unmodified sections, e.g. '// ... existing code ...'\n\nHowever, only output codeblocks for suggestion and demonstration purposes, for example, when enumerating multiple hypothetical options. For implementing changes, use the edit tools.\n\n</important_rules>" }, { "role": "user", "content": "You are an expert development assistant. Your task is to create a comprehensive CONTINUE.md project guide for the user's codebase to help them and their team better understand and work with the project.\n\n## Step 1: Check Required Tools\nFirst, verify that you have access to the necessary tools:\n- file_glob_search: To discover project files\n- read_file: To analyze file contents\n- ls: To explore directory structure\n- create_new_file: To generate the CONTINUE.md file\n\nIf any of these tools are unavailable, inform the user that they need to activate them and enable \"Agent Mode\" in Continue before proceeding.\n\n## Step 2: Project Analysis\nAnalyze the project structure and key files to understand:\n- The programming languages and frameworks used\n- The overall architecture and organization\n- Key components and their responsibilities\n- Important configuration files\n- Build/deployment system\n\n## Step 3: Generate CONTINUE.md\nCreate a comprehensive CONTINUE.md file in the .continue/rules/ directory with the following sections:\n\n1. **Project Overview**\n - Brief description of the project's purpose\n - Key technologies used\n - High-level architecture\n\n2. **Getting Started**\n - Prerequisites (required software, dependencies)\n - Installation instructions\n - Basic usage examples\n - Running tests\n\n3. **Project Structure**\n - Overview of main directories and their purpose\n - Key files and their roles\n - Important configuration files\n\n4. **Development Workflow**\n - Coding standards or conventions\n - Testing approach\n - Build and deployment process\n - Contribution guidelines\n\n5. **Key Concepts**\n - Domain-specific terminology\n - Core abstractions\n - Design patterns used\n\n6. **Common Tasks**\n - Step-by-step guides for frequent development tasks\n - Examples of common operations\n\n7. **Troubleshooting**\n - Common issues and their solutions\n - Debugging tips\n\n8. **References**\n - Links to relevant documentation\n - Important resources\n\nMake sure your analysis is thorough but concise. Focus on information that would be most helpful to developers working on the project. If certain information isn't available from the codebase, make reasonable assumptions but mark these sections as needing verification.\n\n## Step 4: Finalize\nAfter creating the .continue/rules/CONTINUE.md file, provide a summary of what you've created and remind the user to:\n1. Review and edit the file as needed\n2. Commit it to their repository to share with their team\n3. Explain that Continue will automatically load this file into context when working with the project\n\nAlso inform the user that they can create additional rules.md files in subdirectories for more specific documentation related to those components.\n\npy continue_tutorial.py (39-44)\ndef sorting_algorithm2(x):\n for i in range(len(x)):\n for j in range(len(x) - 1):\n if x[j] > x[j + 1]:\n x[j], x[j + 1] = x[j + 1], x[j]\n return x\n```\n"
}
],
"messageOptions": {
"precompiled": true
}
}
}
}

Error: Connection error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:toolsRelates to tool usagekind:bugIndicates an unexpected problem or unintended behavior

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions