podman pull ghcr.io/berriai/litellm:main-latest
% podman pull ghcr.io/berriai/litellm:main-latest
Trying to pull ghcr.io/berriai/litellm:main-latest...
Getting image source signatures
Copying blob sha256:d7861abab26c06aeabf9d3d53a791fdc9daa6b86198ce0fe0f437bba4e7cdf98
Copying blob sha256:55af26b7addf6c0f6fe5fed39393a1379356bb864caac1da91a0fd2fa77b911b
Copying blob sha256:59f5764b1f6d170ea07ca424965974024a14970ff826e9ffa3489c90dc040c24
Copying blob sha256:20b492075b4353011babc89e95b38477fb4360025e713cc90ed74110226c6d51
Copying blob sha256:580c698f01d552ba082146d79a5d345685322cbf4d7806f9bc89ef1198965c74
Copying blob sha256:17c53b71cbcc94ad3da5b596e2c5abc0fea084c0caf7e5e2a12becd8e778a3d6
Copying blob sha256:f47962b1d4a5184e79a14d73a365a228436bc6103409080d8f0b3b8185b4198f
Copying blob sha256:5dea7a5f6a24a4e9fe8953430961ee7db0a9c5038941bbad9823b620814f224d
Copying blob sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1
Copying blob sha256:41a1b9d022e146cad2686d48059b8f903055aa30d85615d7462c7e91f9045398
Copying blob sha256:9359a9a66c90420ec1dc0169db5d58ce3be80f63f8dc45588e96a00884426b76
Copying blob sha256:968c6af1cc6ed48480181a4b39c06da65ce88ee4e3c2de8b952a695c22f4b64d
Copying blob sha256:063443d269af824376c7c21c5a2d45c0ca7114b120c59edf6af1a232f14fe8c1
Copying blob sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1
Copying config sha256:b3a579138ec25f4dc7c2848684bd0aac13afb4151014fcb4f777f9f06a51c4ed
Writing manifest to image destination
b3a579138ec25f4dc7c2848684bd0aac13afb4151014fcb4f777f9f06a51c4ed
%
LiteLLMの構成ファイルを作成します。config.yamlとします。Cohereのcommad-r-plusを呼び出すための最低限の設定をファイルに記述します。
model_list:
- model_name: cohere-command-r-plus
litellm_params:
model: cohere/command-r-plus
api_key: [CohereのAPIキー]
proxy_settings:
allowed_models: [
"cohere-command-r-plus"
]
LiteLLMのコンテナを実行します。以下のコマンドを実行します。podman run -d --rm --name litellm \
-v ${PWD}/config.yaml:/app/config.yaml \
-p 8000:8000 \
ghcr.io/berriai/litellm:main-latest \
--config /app/config.yaml \
--port 8000
% podman run -d --rm --name litellm \
-v ${PWD}/config.yaml:/app/config.yaml \
-p 8000:8000 \
ghcr.io/berriai/litellm:main-latest \
--config /app/config.yaml \
--port 8000
c21b84100cf7d7c1c7bec15d71d8537f31e7dcdf5363875bb3f2ffc01a1929a4
%
podman logs litellm
% podman logs litellm
INFO: Started server process [1]
INFO: Waiting for application startup.
INFO: Application startup complete.
INFO: Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit)
ynakakoshi@Ns-Macbook litellm-proxy %
「あなたは誰ですか?」