AI/Ollama: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
{|class='wikitable' | {|class='wikitable' | ||
|valign='top' style='width:50%'| | |valign='top' style='width:50%'| | ||
<syntaxhighlight lang='bash'> | |||
curl -fsSL https://ollama.com/install.sh | sh | |||
ollama pull model gpt-oss:20b | |||
ollama --version | |||
ollama ls | |||
curl -fsSL https://claude.ai/install.sh | bash | |||
ollama launch claude --model gpt-oss:20b | |||
</syntaxhighlight> | |||
| | |||
|valign='top' style='width:50%'| | |valign='top' style='width:50%'| | ||
<syntaxhighlight lang='bash'> | |||
export ANTHROPIC_BASE_URL=http://localhost:11434 | |||
export ANTHROPIC_AUTH_TOKEN=ollama | |||
export ANTHROPIC_API_KEY="" | |||
claude --model gpt-oss:20b | |||
</syntaxhighlight> | |||
|- | |- | ||
|valign='top' colspan='2'| | |valign='top' colspan='2'| | ||
Revision as of 23:02, 28 February 2026
curl -fsSL https://ollama.com/install.sh | sh
ollama pull model gpt-oss:20b
ollama --version
ollama ls
curl -fsSL https://claude.ai/install.sh | bash
ollama launch claude --model gpt-oss:20b
|
export ANTHROPIC_BASE_URL=http://localhost:11434
export ANTHROPIC_AUTH_TOKEN=ollama
export ANTHROPIC_API_KEY=""
claude --model gpt-oss:20b
| ||
| |||
References
|
References | ||
|---|---|---|