continuedev / continuedev/continue

messageContent.filter is not a function on cloudflare API

Open
#3,289 2 comments 4 reactions 1 assignee View on GitHub

@RomneyDa is already working on this.

Since Dec 10, 2024.

kind:bug needs-triage os:windows
Dominant language
TypeScript
Stars
36k
Forks
5.4k
PR merge metrics
No merged PRs in 30d

Description

Before submitting your bug report
Relevant environment info
- OS: win 11
- Continue version: current & pre-release tested
- config.json:
  

  "models": [
    {
      "accountId": "...",
      "apiKey": "...",
      "contextLength": 2400,
      "completionOptions": {
        "maxTokens": 500
      },
      "model": "@cf/meta/llama-3-8b-instruct",
      "provider": "cloudflare",
      "title": "Llama 3 8B"
    },
    {
      "accountId": "...",
      "apiKey": "...",
      "contextLength": 2400,
      "completionOptions": {
        "maxTokens": 500
      },
      "model": "@hf/thebloke/deepseek-coder-6.7b-instruct-awq",
      "provider": "cloudflare",
      "title": "DeepSeek Coder 6.7B Instruct"
    }
  ],
  "tabAutocompleteModel": [
    {
      "accountId": "...",
      "apiKey": "...",
      "model": "@hf/thebloke/deepseek-coder-6.7b-base-awq",
      "provider": "cloudflare",
      "title": "DeepSeek 7B",
      "completionOptions": {
        "maxTokens": 500}
    }  
  ]
}
Description

Cannot connect to cloudflares AI worker API. Error: messageContent.filter is not a function.

To reproduce
  1. Use json above as continue config
  2. Restart Continue
  3. Try to chat or to code
Log output

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.