Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/llmkira/perplex-server
🧪Search enhanced LLM, simulated perplexity
https://github.com/llmkira/perplex-server
chatgpt gpt-4 llm perplexity
Last synced: 6 days ago
JSON representation
🧪Search enhanced LLM, simulated perplexity
- Host: GitHub
- URL: https://github.com/llmkira/perplex-server
- Owner: LlmKira
- Created: 2024-01-10T11:18:19.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-04-29T14:43:14.000Z (7 months ago)
- Last Synced: 2024-07-24T21:56:06.720Z (4 months ago)
- Topics: chatgpt, gpt-4, llm, perplexity
- Language: Python
- Homepage:
- Size: 815 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# perplex-server
此项目是为了模拟 perplex 的搜索结果。
实施在 [OhMyGpt](https://www.ohmygpt.com/) 联网检索。
### Demo
效果如下:
| Demo1 | Demo2 |
|----------------------------|----------------------------|
| ![Demo1](./docs/demo1.png) | ![Demo2](./docs/demo2.png) || Demo3 | Demo4 |
|----------------------------|----------------------------|
| ![Demo3](./docs/demo3.png) | ![Demo4](./docs/demo4.png) |> 基于 OpenAI 的 GPT-4 模型。
### Run Server
**.env**
````dotenv
OPENAI_BASE_URL=https://api.openai.com/v1/chat/completions
OPENAI_API_KEY=YOUR_API_KEY
OPENAI_MODEL=gpt-4
TAVILY_API_KEY=tvly-
GOOGLE_API_KEY=xxx
GOOGLE_CSE_ID=xxx
SERPER_API_KEY=xxx
````- https://tavily.com/
- https://serper.dev/
- https://developers.google.com/custom-search/v1/overview```shell
pip install pdm
pdm install
pdm run python3 main.py
```### Run Client
```shell
pdm run python3 client.py
```## 🧀 Sponsor
[![sponsor](./.github/sponsor_ohmygpt.png)](https://www.ohmygpt.com)