-
Notifications
You must be signed in to change notification settings - Fork 61
feat: ollama full support for golem and wasm #8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 7 commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
2e98bf0
init ollama full support to golem
Rutik7066 2450468
added ollama client
Rutik7066 3f45670
wip
Rutik7066 69a0c9c
Merge branch 'golemcloud:main' into main
Rutik7066 4a3a5ab
ollama provider
39fa74c
test
a845c8a
fix
2b9a0c3
added image and api fixes
0a634a7
wip
a1517bf
updated decode_message to parse ndjson
c70b6d9
Allows `application/ndjson` header & Add debug print statements for t…
22602e9
wip
31db1ed
clean up
37d8bfe
clean up
7113ac6
Refactor event source handling: Introduce NdJsonStream and Stream tra…
75cdb5f
Merge branch 'main' of https://github.com/golemcloud/golem-llm
3063212
wip
240881a
Ollama Provider for local llms
97c2155
Changed Name Stream to LlmStream
23bab6c
url fix
Rutik7066 5c9f6bd
Merge pull request #1 from Rutik7066/ci-test
Rutik7066 970c3f6
ci fix
Rutik7066 a3738f5
server in background
Rutik7066 eeb46ca
link change
Rutik7066 9fbae33
Merge pull request #2 from Rutik7066/ci-test
Rutik7066 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
[package] | ||
name = "golem-llm-ollama" | ||
version = "0.1.0" | ||
edition = "2021" | ||
license = "Apache-2.0" | ||
homepage = "https://golem.cloud" | ||
repository = "https://github.com/golemcloud/golem-llm" | ||
description = "WebAssembly component for working with Ollama APIs, with special support for Golem Cloud" | ||
|
||
[lib] | ||
path = "src/lib.rs" | ||
crate-type = ["cdylib"] | ||
|
||
|
||
[features] | ||
default = ["durability"] | ||
durability = ["golem-rust/durability", "golem-llm/durability"] | ||
|
||
[dependencies] | ||
golem-llm = { path = "../llm", version = "0.0.1", default-features = false } | ||
base64 = "0.21" | ||
mime_guess = "2.0" | ||
url = "2.4" | ||
|
||
golem-rust = { workspace = true } | ||
log = { workspace = true } | ||
reqwest = { workspace = true } | ||
serde.workspace = true | ||
serde_json = { workspace = true } | ||
wit-bindgen-rt = { workspace = true } | ||
|
||
|
||
[package.metadata.component] | ||
package = "golem:llm-ollama" | ||
|
||
[package.metadata.component.bindings] | ||
generate_unused_types = true | ||
|
||
[package.metadata.component.bindings.with] | ||
"golem:llm/llm@1.0.0" = "golem_llm::golem::llm::llm" | ||
|
||
[package.metadata.component.target] | ||
path = "wit" | ||
|
||
[package.metadata.component.target.dependencies] | ||
"golem:llm" = { path = "wit/deps/golem-llm" } | ||
"wasi:io" = { path = "wit/deps/wasi:io" } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do not adjust the other creates in the project please