Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions docs/binding.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,12 @@ Build:
nim c main.nim
```

Run it with exactly the same command line options, for example: `main -i -m path/to/model`.
> [!WARNING]
> Linux does not search for `.so` files in current directory by default.
> You need to update your library path before running the nim program with:
> `export LD_LIBRARY_PATH="$PWD:$LD_LIBRARY_PATH"`

Comment on lines +39 to +43

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks better to move this information to the top.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is specific to running the program, not building it.
I've already done the changes suggested by copilot.
I won't be spending anymore of my time on this change.

Run it with exactly the same command line options, for example: `./main -i -m path/to/model`.

![](code_highlight.png)

Expand Down Expand Up @@ -189,4 +194,4 @@ Examples:

### Others

* [V-lang/VB.net/C#](https://github.com/foldl/chatllm.cpp/issues/41)
* [V-lang/VB.net/C#](https://github.com/foldl/chatllm.cpp/issues/41)
Loading