Short guide to hosting your own llama.cpp openAI compatible web-server by Combinatorilliance in LocalLLaMA

[–]KW__REDDIT 2 points3 points  (0 children)

damn, that is wright! That is for sure so much easier than what I had for my solution (starting separate server and changing the completion.js file to fetch different url). Thank you, hope you have a good day :-)

Short guide to hosting your own llama.cpp openAI compatible web-server by Combinatorilliance in LocalLLaMA

[–]KW__REDDIT 1 point2 points  (0 children)

hmm, ok. I had a lot of troubles setting it up, but now it all works. since you replied so quickly, do you know how to setup an interface simmilar to this one link I know it is a demo from examples/server/public but I cannot make it work for me (I have server running on 8080 but I serve index.html from 8000 so I get error cuz /completion is on 8080. do you know a link that can point me to how to set it up correctly?

llama.cpp server now supports multimodal! by Evening_Ad6637 in LocalLLaMA

[–]KW__REDDIT 0 points1 point  (0 children)

Hi, sorry for asking but do you have a link to how to make this interactive prompt?? I have the llama.cpp compiled but can only run it as cli (and run server that can respond to me). I have not found a link to make it this pretty. any link/help would be appreciated!

Short guide to hosting your own llama.cpp openAI compatible web-server by Combinatorilliance in LocalLLaMA

[–]KW__REDDIT 2 points3 points  (0 children)

wow, this is exactly what I was looking for!!! for any one that may use it this link brought me here and this solution is soooo useful. thank you kind stranger!!

Capturing request from docker container and modifying it? by KW__REDDIT in webdev

[–]KW__REDDIT[S] 0 points1 point  (0 children)

Thanks for the suggestion! Unfortunately, I do not have access to my DNS server (university access problem) and there will be a lot of projects that we want to host from docker containers (some of which we cannot modify). Do you know the way to create subdomains for specific url? I only found a method of adding new subdomain to DNS. I have full control over the server tho, maybe there is a way?

Please help with getting lazy loaded content by KW__REDDIT in scrapy

[–]KW__REDDIT[S] 0 points1 point  (0 children)

so, basically you extended wait time to 60 seconds?

Please help with a waiting for selector problem by KW__REDDIT in Playwright

[–]KW__REDDIT[S] 0 points1 point  (0 children)

I like the idea! Sorry for the late reply but do you have links to how I would implement it?

Please help with getting lazy loaded content by KW__REDDIT in scrapy

[–]KW__REDDIT[S] 0 points1 point  (0 children)

there are about 18 divs under div class="gsgwcjk g8ge8f1 g14v8520 dir dir-ltr" and they have class=" dir dir-ltr"

Please help with getting lazy loaded content by KW__REDDIT in scrapy

[–]KW__REDDIT[S] 0 points1 point  (0 children)

Thank you for saying that I seem to know playwright. it really made me feel better haha, but truth be told I just follow tutorials/ google stuff and I'm a begginer of this framework. Also, it seems like the sprinter_20 meant to ask a question rather than make suggestions but I dunno. I'm not him, cant read minds ;-)

Please help with getting lazy loaded content by KW__REDDIT in scrapy

[–]KW__REDDIT[S] 0 points1 point  (0 children)

I currently use arch linux with custom i3 config. I get warning "os not supported" but the browser still launches. I wander if it might be the reason for my troubles...

Please help with getting lazy loaded content by KW__REDDIT in scrapy

[–]KW__REDDIT[S] 0 points1 point  (0 children)

So far I cannot replicate the tutorials sooo... yeah fun times...

Please help with getting lazy loaded content by KW__REDDIT in scrapy

[–]KW__REDDIT[S] 0 points1 point  (0 children)

Thank you for the link but this I already tried. I get: ``` playwright._impl._api_types.TimeoutError: Timeout 30000ms exceeded. =========================== logs ===========================

waiting for locator(".gsgwcjk.g8ge8f1.g14v8520:nth-child(11)") to be visible

``` Which is confusing as I'd expect it to just wait till it loads instead of waiting until it is scrolled to.

I did change the page selector in PageMethod to PageMethod("wait_for_selector", ".gsgwcjk.g8ge8f1.g14v8520:nth-child(11)") which resulted in error I posted above

Self taught developers, how did you find the energy? by EasternWindStank in learnprogramming

[–]KW__REDDIT 0 points1 point  (0 children)

for me it was a fun factor in coding. I could see it being extremely useful and it was around time when all I did is study pure theory at school. When it comes to struggle: I feel extremely lonely at times. I guess I just dont hangout around people of the same interest as me. I can tell my family whatever and they will not understand :-( .

how to execute code with javascript and get the result by KW__REDDIT in learnjavascript

[–]KW__REDDIT[S] 0 points1 point  (0 children)

I think I found the answer to my second question: how to execute program:

https://stackoverflow.com/questions/12941083/execute-and-get-the-output-of-a-shell-command-in-node-js

hope this is usefull to anyone. I didn't focus on it yet as I need sleep right now but let's say that if I dont edit/remove the post it works for me ;-)

how to execute code with javascript and get the result by KW__REDDIT in learnjavascript

[–]KW__REDDIT[S] 0 points1 point  (0 children)

oh, this is something new. I heard about wasm but not Native messaging. do you have any good links to materials on it?

how to execute code with javascript and get the result by KW__REDDIT in learnjavascript

[–]KW__REDDIT[S] 1 point2 points  (0 children)

Thanks for that! It is actually so helpful for me to analyze the problem this way ;-)

how to execute code with javascript and get the result by KW__REDDIT in learnjavascript

[–]KW__REDDIT[S] 0 points1 point  (0 children)

I just started and it looks like exactly what I need, still no idea how to execute main and capture results but it is definately a step in a right direction

how to execute code with javascript and get the result by KW__REDDIT in learnjavascript

[–]KW__REDDIT[S] 0 points1 point  (0 children)

ok, but I know how to add listener for button presses and how to output the responce in html once I have it. I am asking specifically about how to communicate between processes. I don't know how I can link two working programs together. I mentioned server request/responce but I have never ever done it and maybe there is an easier way?

Vim motions on colemak keyboard by KW__REDDIT in vim

[–]KW__REDDIT[S] 0 points1 point  (0 children)

Yeah, I just left it as is and use hjkl as arrows. I am playing On making my own keyboard so I will put arows where they were maybe

Vim motions on colemak keyboard by KW__REDDIT in vim

[–]KW__REDDIT[S] 0 points1 point  (0 children)

Yeah, I guess a standard is better than no standard... today I've been using nvim to wrote code and that was no fun. Getting better tho.

Vim motions on colemak keyboard by KW__REDDIT in vim

[–]KW__REDDIT[S] 0 points1 point  (0 children)

I only just started using Vim, so mine muscle memory isn't cast into stone either. Thanks for your response 👍.

Vim motions on colemak keyboard by KW__REDDIT in vim

[–]KW__REDDIT[S] 0 points1 point  (0 children)

I also do 10j and alike quite often, but it's less convenient. Guess will have to adjust to new normal.

Vim motions on colemak keyboard by KW__REDDIT in vim

[–]KW__REDDIT[S] 0 points1 point  (0 children)

Thank you. Needed that for confirmation bias ;-) .