feat: 新增 Ollama (#1089)

This commit is contained in:
wanghe 2024-03-14 17:27:33 +08:00 committed by GitHub
parent 15c4111942
commit 99fb4a5e14
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 57 additions and 0 deletions

9
apps/ollama/README.md Normal file
View File

@ -0,0 +1,9 @@
# ollama
**Ollama** 是一个开源的大型语言模型服务,提供了类似 OpenAI 的 API 接口和聊天界面,可以非常方便地部署最新版本的 GPT 模型并通过接口使用。支持热加载模型文件,无需重新启动即可切换不同的模型。
## 优势:
- 提供类似OpenAI的简单内容生成接口极易上手使用
- 类似ChatGPT的的聊天界面无需开发直接与模型聊天
- 支持热切换模型,灵活多变。

20
apps/ollama/data.yml Normal file
View File

@ -0,0 +1,20 @@
name: Ollama
tags:
- AI
title: 启动并运行 Llama 2、Mistral、Gemma 和其他大型语言模型
type: AI
description: 启动并运行 Llama 2、Mistral、Gemma 和其他大型语言模型
additionalProperties:
key: ollama
name: Ollama
tags:
- AI
shortDescZh: 启动并运行 Llama 2、Mistral、Gemma 和其他大型语言模型
shortDescEn: Get up and running with Llama 2, Mistral, Gemma, and other large language models
type: tool
crossVersionUpdate: true
limit: 0
recommend: 0
website: https://ollama.com/
github: https://github.com/ollama/ollama
document: https://github.com/ollama/ollama/blob/main/docs/README.md

View File

@ -0,0 +1,10 @@
additionalProperties:
formFields:
- default: 11434
edit: true
envKey: PANEL_APP_PORT_HTTP
labelEn: Port
labelZh: 端口
required: true
rule: paramPort
type: number

View File

@ -0,0 +1,18 @@
version: '3'
services:
ollama:
image: ollama/ollama:latest
container_name: ${CONTAINER_NAME}
restart: unless-stopped
ports:
- ${PANEL_APP_PORT_HTTP}:11434
networks:
- 1panel-network
tty: true
volumes:
- ./data:/root/.ollama
labels:
createdBy: "Apps"
networks:
1panel-network:
external: true

BIN
apps/ollama/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB