Merge pull request #81 from Fosowl/dev

readme udpate, changed deepseek-api to just deepseek for deepseek api provider
This commit is contained in:
Martin 2025-03-27 21:11:43 +01:00 committed by GitHub
commit 7968f83bf8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 5 additions and 5 deletions

View File

@ -1,3 +1,3 @@
SEARXNG_BASE_URL="http://127.0.0.1:8080"
OPENAI_API_KEY='dont share this, not needed for local providers'
TOKENIZERS_PARALLELISM=False
OPENAI_API_KEY='xxxxx'
DEEPSEEK_API_KEY='xxxxx'

View File

@ -307,7 +307,7 @@ The table below show the available providers:
| Provider | Local? | Description |
|-----------|--------|-----------------------------------------------------------|
| ollama | Yes | Run LLMs locally with ease using ollama as a LLM provider |
| Server | Yes | Host the model on another machine, run your local machine |
| server | Yes | Host the model on another machine, run your local machine |
| lm-studio | Yes | Run LLM locally with LM studio (set `provider_name` to `lm-studio`)|
| openai | No | Use ChatGPT API (non-private) |
| deepseek-api | No | Deepseek API (non-private) |

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 MiB

After

Width:  |  Height:  |  Size: 1.0 MiB

View File

@ -26,10 +26,10 @@ class Provider:
"openai": self.openai_fn,
"lm-studio": self.lm_studio_fn,
"huggingface": self.huggingface_fn,
"deepseek-api": self.deepseek_fn
"deepseek": self.deepseek_fn
}
self.api_key = None
self.unsafe_providers = ["openai", "deepseek-api"]
self.unsafe_providers = ["openai", "deepseek"]
if self.provider_name not in self.available_providers:
raise ValueError(f"Unknown provider: {provider_name}")
if self.provider_name in self.unsafe_providers: