Repository navigation
Replies: 1 comment
|
Ha ! And also the prompts are not logged with |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi everyone!
I'm trying to use llamafile 0.10.5 with
Gemma 4 E2Bmodel to serve the OpenAI API to opencode.Opencode has a custom provider configured has stated in their docs:
{ "$schema": "https://opencode.ai/config.json", "shell": "/bin/bash", "provider": { "llamafile": { "npm": "@ai-sdk/openai-compatible", "name": "local LLAmaFile", "options": { "baseURL": "http://localhost:8080/v1", }, "models": { "gemma-4-E2B-it-Q8_0.gguf": { "name": "Gemma 4 E2B Q8", "limit": { "context": 128000, "output": 128000 } } } } } }Then llamafile is launced as a server:
(yep, I do not have a GPU 😞 )
Then in opencode, I have only the
thinkingwith animated icon but the text is not streamed, at the end of inference, all the think part and answer appear in 1 block (aka,stream: false).The same server instance in the webUI the streaming works.
With server live logs I can see streaming parts are sent...
And of course, opencode using builtins providers with free remote models, the streaming works...
BTW everything else is working, esp. opencode's tools/skils/etc what is cool ! Just on my potato, a simple "salut" and reasoning does repsond in 5min. So I would like to see if something is generating or hanged with at least the 2tok/s stream :/
Anybody does had played with oencode and custom local providers to spot wich config is missing ?
All reactions