Skip to content

Commit faf56f6

Browse files
committed
fix: update provider examples
1 parent 65f68e2 commit faf56f6

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

docs/providers.rst

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,19 @@ To select a provider and model, run ``gptme`` with the ``-m``/``--model`` flag s
99

1010
.. code-block:: sh
1111
12-
gptme --model openai/gpt-4o "hello"
13-
gptme --model anthropic "hello" # if model part unspecified, will fall back to the provider default
14-
gptme --model openrouter/meta-llama/llama-3.1-70b-instruct "hello"
15-
gptme --model deepseek/deepseek-reasoner "hello"
16-
gptme --model gemini/gemini-1.5-flash-latest "hello"
17-
gptme --model groq/llama-3.3-70b-versatile "hello"
18-
gptme --model xai/grok-beta "hello"
19-
gptme --model local/llama3.2:1b "hello"
20-
21-
On first startup, if ``--model`` is not set, and no API keys are set in the config or environment it will be prompted for. It will then auto-detect the provider, and save the key in the configuration file.
12+
gptme "hello" -m openai/gpt-5
13+
gptme "hello" -m anthropic # will use provider default
14+
gptme "hello" -m openrouter/x-ai/grok-4
15+
gptme "hello" -m deepseek/deepseek-reasoner
16+
gptme "hello" -m gemini/gemini-2.5-flash
17+
gptme "hello" -m groq/llama-3.3-70b-versatile
18+
gptme "hello" -m xai/grok-beta
19+
gptme "hello" -m local/llama3.2:1b
2220
2321
You can list the models known to gptme using ``gptme '/models' - '/exit'``
2422

23+
On first startup API key will be prompted for if no model and no API keys are set in the config/environment. The key will be saved in the configuration file, the provider will be inferred, and its default model used.
24+
2525
Use the ``[env]`` section in the :ref:`global-config` file to store API keys using the same format as the environment variables:
2626

2727
- ``OPENAI_API_KEY="your-api-key"``

0 commit comments

Comments
 (0)