Skip to content

add claude and local llm functionality#66

Draft
ginberg wants to merge 3 commits into
developfrom
46-add-claude-and-local-llm-functionality
Draft

add claude and local llm functionality#66
ginberg wants to merge 3 commits into
developfrom
46-add-claude-and-local-llm-functionality

Conversation

@ginberg

@ginberg ginberg commented Jun 16, 2026

Copy link
Copy Markdown
Collaborator

see #46

@ginberg

ginberg commented Jun 18, 2026

Copy link
Copy Markdown
Collaborator Author

did you have the possibility to try this out @Faptimus420?

@Faptimus420

Copy link
Copy Markdown

did you have the possibility to try this out @Faptimus420?

Unfortunately, not yet - we are missing some system-level dependencies required by one of the R packages required by the tool on our system at the moment. Will test once that's been resolved

@Faptimus420

Copy link
Copy Markdown

Hi @ginberg. Apologies this took so long, getting all the dependencies required by the lock file on our system took a few days, as we're working on an offline system.

Nonetheless, I got the package running. I can point it to our local ollama models - when I create a new chat, I get "✔ ollama chat created with llama3.1:8b". However, when I try to actually send a prompt, I get
Error in req_perform() at ellmer/R/httr2.R:23:3: ! HTTP 500 Internal Server Error. ℹ Failed to create new sequence: unable to create sampling context
This is only happening from within PatientGenerator - if I prompt the same model directly using the ellmer library, I get a response.

I only set the model, provider, and echo arguments, I did not touch jsonSchemaPath or system_prompt. Let me know if you have any ideas - I'll ask the sysadmin to see if I can get any more detailed logs.

@ginberg

ginberg commented Jun 26, 2026

Copy link
Copy Markdown
Collaborator Author

hi @Faptimus420, thanks for trying this out!
When searching for this error, I found a few github issues this one for example. But I am not totally sure, how we need to adjust this package. We will look into it more. But please let us know if you have any ideas.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants