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

How to generate the response from locally hosted end point in vscode? #100

Open
dkaus1 opened this issue Oct 25, 2023 · 1 comment
Open
Labels

Comments

@dkaus1
Copy link

dkaus1 commented Oct 25, 2023

Hi,

I managed to plug the llm-vcode extension to point to the locally running endpoint. Now when I am selected the content like as below:

function to sum 2 numbers in python

then Cmd+shif+a > llm: show code attribution
My local endpoint invokes and give the relevant response as well in below format

{ "details": { "best_of_sequences": [ { "finish_reason": "length", "generated_text": "test", "generated_tokens": 1, "prefill": [ { "id": 0, "logprob": -0.34, "text": "test" } ], "seed": 42, "tokens": [ { "id": 0, "logprob": -0.34, "special": false, "text": "test" } ], "top_tokens": [ [ { "id": 0, "logprob": -0.34, "special": false, "text": "test" } ] ] } ], "finish_reason": "length", "generated_tokens": 1, "prefill": [ { "id": 0, "logprob": -0.34, "text": "test" } ], "seed": 42, "tokens": [ { "id": 0, "logprob": -0.34, "special": false, "text": "test" } ], "top_tokens": [ [ { "id": 0, "logprob": -0.34, "special": false, "text": "test" } ] ] }, "generated_text": "test" }
"generated_text": value is replaced with actual response with python sum function

After 200, I can see the anything related to generated code in vscode.

Please suggest to how to I can get generated response in vscode itself.

@dkaus1 dkaus1 changed the title How to generate the reponse frm locally host end point? How to generate the response from locally hosted end point in vscode? Oct 25, 2023
Copy link
Contributor

This issue is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale label Nov 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant