Comments (3)
Hi @ericrallen Iām the maintainer of LiteLLM - we allow you to create a proxy server to call 100+ LLMs, and I think it can solve your problem (I'd love your feedback if it does not)
Try it here: https://docs.litellm.ai/docs/proxy_server
Using LiteLLM Proxy Server
import openai
openai.api_base = "http://0.0.0.0:8000/" # proxy url
print(openai.ChatCompletion.create(model="test", messages=[{"role":"user", "content":"Hey!"}]))
Creating a proxy server
Ollama models
$ litellm --model ollama/llama2 --api_base http://localhost:11434
Hugging Face Models
$ export HUGGINGFACE_API_KEY=my-api-key #[OPTIONAL]
$ litellm --model claude-instant-1
Anthropic
$ export ANTHROPIC_API_KEY=my-api-key
$ litellm --model claude-instant-1
Palm
$ export PALM_API_KEY=my-palm-key
$ litellm --model palm/chat-bison
from obsidian-ai-research-assistant.
Hey there, @ishaan-jaff!
While I think LiteLLM introduces some interesting functionality, I can't really see how it would be practical to integrate with this plugin that runs inside of an Electron app, but I might be missing how it could be easily integrated.
from obsidian-ai-research-assistant.
Would love to get jmorganca/ollama #751 merged in to make it easier for Obsidian plugins to find Ollama hosts on the local network without needing to manually enter IP addresses.
from obsidian-ai-research-assistant.
Related Issues (13)
- Editable Title by Default when Autosave is Enabled HOT 1
- [BUG]: Token calculation logic is wrong HOT 1
- Incorporate Feedback from Obsidian Plugin Review HOT 1
- [Request]: Implement Streaming Responses HOT 5
- [Request]: Ingest ChatGPT Conversation JSON HOT 4
- [Request]: Integrate manifest-beta.json for preview releases
- ChatGPT API HOT 1
- [Request]: Template Strings for Preamble HOT 1
- [Request]: Resubmit Prompt
- [BUG]: Chat Scrolling Broke when Streaming Responses were Introduced
- [Request]: could I talk with my notes recorded in obsidian ? HOT 1
- Secure Storage of OpenAI API Key HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
š Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ššš
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ā¤ļø Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from obsidian-ai-research-assistant.