Replies: 1 comment
-
After one last try I figured it out. The correct code is:
The documentation is wrong. I used ilspy to figure out the issue... |
Beta Was this translation helpful? Give feedback.
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.
-
Sorry but I'm already feeling stupid with this one. I already tried so many things...
I added Ollama hosting to my App Host. No issues there. Downloads the model successfuly.
I now want to use the
OllamaSharp
in myApiService
. I followed the documentation:CommunityToolkit.Aspire.OllamaSharp
builder.Services.AddOllamaClientApi("ollama")
toProgram.cs
.I keep getting the compilation error: 'IServiceCollection' does not contain a definition for 'AddOllamaClientApi'.
I'm using:
Beta Was this translation helpful? Give feedback.
All reactions