Skip to content

Unable to connect to hugging face inference providers #5763

Open
@davidpangsw

Description

@davidpangsw

Before submitting your bug report

Relevant environment info

- OS:macOS
- Continue version: v1.1.37
- IDE version:VSCode 1.92
- Model: `deepseek/deepseek-v3-0324`, or others
- config:
  
name: Local Assistant
version: 1.0.0
schema: v1
models:
  - name: chat-model
    provider: huggingface-inference-api
    model: deepseek/deepseek-v3-0324
    apiBase: https://router.huggingface.co/novita/v3/openai
    apiKey: hf_XXXXX
    roles:
      - chat
      - edit
      - autocomplete
context:
  - provider: code
  - provider: docs
  - provider: diff
  - provider: terminal
  - provider: problems
  - provider: folder
  
  OR link to assistant in Continue hub:

Description

It cannot integrate with the inference providers described in hugging face docs about inference providers.
I have tried out different routes and models, but it still gives:

Error streaming edit diffs: Unexpected non-whitespace character after JSON at position 4 (line 1 column 5)

I confirmed my api key is correct.

To reproduce

  1. get an proper API key from hugging face
  2. go to config.yaml and set the config as above
  3. Send any prompt

Log output

Metadata

Metadata

Labels

area:configurationRelates to configuration optionsgood-first-issueSuggested issue for new contributorside:vscodeRelates specifically to VS Code extensionkind:bugIndicates an unexpected problem or unintended behavioros:macHappening specifically on Mac

Type

No type

Projects

Status

In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions