Repository navigation
Replies: 3 comments
|
This can be achieved by adding a tool call. It is merely a tool that enables you to interact with the AI more conveniently. Refer to https://github.com/awaescher/OllamaSharp/blob/main/test/OllamaApiClientTests.cs#L473 or https://www.cnblogs.com/itstac/p/19064077 to pass the tool to the AI. |
|
I think "Airplane Mode" simply doesn't use ollama cloud services like cloud turbo models and search. OllamaSharp client should not use them by default. Maybe you would consider it already "Airplane Mode." |
|
@Coder3333 From my understanding, "Airplane Mode" is a feature of the Ollama desktop application rather than a setting exposed by the Ollama HTTP API itself.
If your goal is to ensure the application stays completely offline, I'd suggest verifying:
If you're specifically looking for an SDK property such as: client.Settings.AirplaneMode = true;I don't believe OllamaSharp currently exposes such an option, likely because the underlying Ollama API doesn't expose one either. If the maintainers know of an API endpoint for toggling the desktop client's Airplane Mode, I'd also be interested to learn about it. If this solves your problem, feel free to mark it as the accepted answer so others can find it easily. |
Uh oh!
There was an error while loading. Please reload this page.
Sorry, brand new to this. I noticed in the GUI for the Windows Desktop client, I can enable Airplane Mode in the Settings. Is there a way to turn this on from OllamaApiClient or some other part of the SDK? Thanks.
All reactions