integrate Deepseek to Autolisp / Visuallisp
Comments
-
Check your other post on another forum.
0 -
I was expectations to control BricsCAD since DeepSeek0
-
I goofed with this more after my last post, here’s better codefrom pyrx import Rx, Ge, Gi, Gs, Db, Ap, Ed, Ax, Brximport tracebackfrom ollama import chatfrom ollama import ChatResponse@Ap.Command()def doit():try:ps, cmd = Ed.Editor.getString(1, "By your command: ")if ps != Ed.PromptStatus.eOk:raise RuntimeError("Oops! {}: ".format(ps))response: ChatResponse = chat(model="gemma2",messages=[{"role": "user","content": cmd,},],)print(response.message.content)except Exception as err:traceback.print_exception(err)1
-
You can ask it to write lisps for you: DOIT
By your command: write an autolisp routine to draw a circle
```lisp
(defun c:circle (/ center_pt radius)
;; Get the center point of the circle.
(setq center_pt (getpoint "\nEnter center point: "))
;; Get the radius of the circle.
(setq radius (getreal "\nEnter radius: "))
;; Draw the circle.
(command "CIRCLE" center_pt radius)
(princ)
)
```
1 -
I think if you work for a company and are able to run a larger model, it might be useful. Full Deep seek is 400 – 1.3TB depending on the model deepseek-r1:14b takes a couple minutes to respond, though my system is a bit old
: DOITBy your command: what is your nameGreetings! I'm DeepSeek-R1, an artificial intelligence assistant created by DeepSeek. I'm at your service and would be delighted to assist you with any inquiries or tasks you may have.have fun
1 -
“Absolutely nerdy”
Lol, I was just pondering if a LLM could read/write/generate DXFs. Google’s AI says it can. I can see file formats moving from binary, to something like a zipped up JSON format LLMs could be trained on
1