Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot read properties of undefined (reading 'toLowerCase') #1210

Open
1 of 3 tasks
ibehnam opened this issue May 1, 2024 · 2 comments
Open
1 of 3 tasks

Cannot read properties of undefined (reading 'toLowerCase') #1210

ibehnam opened this issue May 1, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@ibehnam
Copy link

ibehnam commented May 1, 2024

Before submitting your bug report

Relevant environment info

Happened out of the blue and the only way to get rid of this annoying issue is to completely disable the extension. It happens on the stable and pre-release branches.

Description

Kapture 2024-05-01 at 00 20 46

To reproduce

No response

Log output

No response

@ibehnam ibehnam added the bug Something isn't working label May 1, 2024
@sestinj
Copy link
Contributor

sestinj commented May 2, 2024

@ibehnam Do you happen to have a CustomLLM in your config.ts? I saw this for the first time yesterday when I was adding one of my own

@sestinj sestinj self-assigned this May 2, 2024
@ibehnam
Copy link
Author

ibehnam commented May 5, 2024

@sestinj I use the following LLMs in my config if that helps:

{
  "allowAnonymousTelemetry": false,
  "models": [
    {
      "tabAutocompleteModel": {
        "title": "💻 Tab Autocomplete Model",
        "provider": "ollama",
        "model": "deepseek-coder:6.7b",
        "apiBase": "https://localhost:11434"
      },
      "tabAutocompleteOptions": {
        "useCopyBuffer": true,
        "useSuffix": true,
        "multilineCompletions": true,
        "maxPromptTokens": 400,
        "prefixPercentage": 0.5
      }
    },
    {
      "title": "💻OL🐢⭐ Phi-3",
      "model": "phi3",
      "provider": "ollama",
      "contextLength": 4096
    },
    {
      "title": "💻OL🐢⭐ codegemma:7b-code-q8_0",
      "model": "llama3:8b-instruct-q8_0",
      "provider": "ollama",
      "contextLength": 16384
    },
    {
      "title": "💻OL🐢⭐ Llama-3-8B",
      "model": "llama3:8b-instruct-q8_0",
      "provider": "ollama",
      "contextLength": 16384
    },
    {
      "title": "💻OL🐢⭐ DeepSeek:6.7B",
      "model": "DeepSeek-Coder:6.7B",
      "provider": "ollama",
      "contextLength": 16384
    },
    {
      "title": "🛜OR🏎️⭐ Haiku",
      "model": "anthropic/claude-3-haiku:beta",
      "provider": "openai",
      "apiBase": "https://openrouter.ai/api/v1",
      "apiKey": "...",
      "contextLength": 200000
    },
    {
      "title": "🛜OR⭐⭐ Sonnet",
      "model": "anthropic/claude-3-sonnet:beta",
      "provider": "openai",
      "apiBase": "https://openrouter.ai/api/v1",
      "apiKey": "...",
      "contextLength": 200000
    },
    {
      "title": "🛜OR⭐⭐⭐ Opus",
      "model": "anthropic/claude-3-opus:beta",
      "provider": "openai",
      "apiBase": "https://openrouter.ai/api/v1",
      "apiKey": "...",
      "contextLength": 200000
    },
    {
      "title": "🛜OR⭐⭐⭐ GPT-4",
      "model": "openai/gpt-4-1106-preview",
      "contextLength": 32768,
      "apiBase": "https://openrouter.ai/api/v1",
      "apiKey": "...",
      "completionOptions": {
        "temperature": 0.8,
        "topK": 50,
        "topP": 0.9,
        "presencePenalty": 1,
        "frequencyPenalty": 1
      },
      "provider": "openai"
    }
  ],
  "systemMessage": "Act like a professional Python and Rust developer. Always use types, annotations, and elegant algorithms. Write clean, efficient, and maintainable code. Assume all necessary imports are already installed and imported, so do NOT import them. Don't talk---just write the code. Don't explain your code unless asked.",
  "completionOptions": {
    "temperature": 0.8,
    "topP": 0.9,
    "topK": 50,
    "presencePenalty": 1,
    "frequencyPenalty": 1,
    "maxTokens": 2048
  },
  "slashCommands": [
    {
      "name": "edit",
      "description": "Edit highlighted code"
    },
    {
      "name": "comment",
      "description": "Write comments for the highlighted code"
    },
    {
      "name": "share",
      "description": "Download and share this session"
    },
    {
      "name": "cmd",
      "description": "Generate a shell command"
    }
  ],
  "customCommands": [
    {
      "name": "cc",
      "prompt": "Fix the code. Keep the code comments to a minimum. Your answer should be only the fixed code.",
      "description": "fix the highlighted code"
    },
    {
      "name": "vv",
      "prompt": "What's the Vim command or shortcut to do this? Your answer should be only the Vim command or shortcut.",
      "description": "Vim How-To"
    },
    {
      "name": "test",
      "prompt": "Write a comprehensive set of unit tests for the selected code. It should setup, run tests that check for correctness including important edge cases, and teardown. Ensure that the tests are complete and sophisticated. Give the tests just as chat output, don't edit any file.",
      "description": "Write unit tests for highlighted code"
    }
  ],
  "contextProviders": [
    {
      "name": "codebase",
      "params": {
        "nRetrieve": 25,
        "nFinal": 5,
        "useReranking": true
      }
    },
    {
      "name": "diff",
      "params": {}
    },
    {
      "name": "open",
      "params": {}
    },
    {
      "name": "terminal",
      "params": {}
    },
    {
      "name": "open"
    },
    {
      "name": "search"
    },
    {
      "name": "url",
      "params": {
        "presetUrls": [
          "https://continue.dev/docs/customization",
          "https://news.ycombinator.com"
        ]
      }
    },
    {
      "name": "tree"
    },
    {
      "name": "code",
      "params": {}
    },
    {
      "name": "docs",
      "params": {}
    }
  ],
  "tabAutocompleteModel": {
    "title": "Tab Autocomplete",
    "provider": "free-trial",
    "model": "starcoder-7b"
  },
  "embeddingsProvider": {
    "provider": "free-trial"
  },
  "reranker": {
    "name": "free-trial"
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants