Ollama使用记录

default

搭建Ollama

Ollama:https://ollama.com/

硬件环境

Operating System: Windows 11 家庭中文版 64-bit (10.0, Build 26100) (26100.ge_release.240331-1435)

Processor: 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz (8 CPUs), ~2.4GHz

Memory: 16384MB RAM

Display Devices: Intel(R) Iris(R) Xe Graphics

Display Memory: 8211 MB


安装

下载:https://ollama.com/download

界面使用

对话框输入问题,选择模型后,回车会自动检查并下载对应模型,并回答问题。

图 1

API 使用

开启 api 接口

图 2

调用

简单的 API 使用可参考 Apifox 中提供的接口文档。

图 0

详细官方 API 文档见:https://github.com/ollama/ollama/blob/main/docs/api.md

文档参考

https://github.com/ollama/ollama/tree/main/docs

Licensed under CC BY-NC-SA 4.0
Gear(夕照)的博客。记录开发、生活,以及一些不足为道的思考……