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

Error in Parsing config.yaml with clientCertificate added #4916

Open
3 tasks done
AbhilashPal opened this issue Mar 31, 2025 · 3 comments
Open
3 tasks done

Error in Parsing config.yaml with clientCertificate added #4916

AbhilashPal opened this issue Mar 31, 2025 · 3 comments
Assignees
Labels
area:configuration Relates to configuration options ide:vscode Relates specifically to VS Code extension kind:bug Indicates an unexpected problem or unintended behavior priority:medium Indicates medium priority

Comments

@AbhilashPal
Copy link

AbhilashPal commented Mar 31, 2025

Before submitting your bug report

Relevant environment info

- OS: Ubuntu 24.04.1 LTS
- Continue version: 1.0.5
- IDE version: VS Code 1.98.2
- Model:Qwen/Qwen2.5-Coder-32B-Instruct-AWQ
- config:
  
models:
  - name: Qwen
    provider: openai
    model: Qwen/Qwen2.5-Coder-32B-Instruct-AWQ
    apiBase: https://[url]/api/v1
    apiKey: EMPTY
    requestOptions:
      clientCertificate:
        cert: C:/certs/ca-certificates.crt

    roles:
      - autocomplete
      - chat
  
  OR link to assistant in Continue hub:

Description

No response

To reproduce

  1. Use a vllm endpoint running on a VM or Pod which can be accessed as https://[url]/api/v1

Log output

Image

@dosubot dosubot bot added area:configuration Relates to configuration options ide:vscode Relates specifically to VS Code extension kind:bug Indicates an unexpected problem or unintended behavior priority:medium Indicates medium priority labels Mar 31, 2025
@Patrick-Erichsen
Copy link
Collaborator

Hm, this should be handled here:

requestOptions.clientCertificate.cert,

Are there any other logs you can share?

@AbhilashPal
Copy link
Author

I get the following :

[Extension Host] Failed to parse rolled assistant: name: continue-xxx
version: 0.0.1
schema: v1

models:
  - name: xxx
      provider: openai
      model: /models/Nvidia-Llama-3.1-Nemotron-70B-Instruct-HF-AWQ-INT4/
      apiBase: https://xxx/api/v1/
      apiKey: EMPTY
      template: none
      defaultCompletionOptions: {}
      roles:
        - chat
  
  - name: xxx
    provider: openai
    model: Qwen/Qwen2.5-Coder-32B-Instruct-AWQ
    apiBase: https://xxx/api/v1
    apiKey: EMPTY
    requestOptions:
      clientCertificate:
        cert: C:/certs/ca-certificates.crt

    roles:
      - autocomplete
      - chat

prompts:
  - name: test
    description: Write unit tests for highlighted code
    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.

context:
  - provider: code
  - provider: docs
  - provider: diff
  - provider: terminal
  - provider: problems
  - provider: folder
  - provider: codebase

@jrtate13
Copy link

jrtate13 commented Apr 3, 2025

@Patrick-Erichsen , @AbhilashPal this is happening because both the cert and key are required for the clientCertificate property.

export const clientCertificateOptionsSchema = z.object({
cert: z.string(),
key: z.string(),
passphrase: z.string().optional(),
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:configuration Relates to configuration options ide:vscode Relates specifically to VS Code extension kind:bug Indicates an unexpected problem or unintended behavior priority:medium Indicates medium priority
Projects
None yet
Development

No branches or pull requests

3 participants