Skip to content

How to set and use properly configuration file? #377

Closed Answered by ErikBjare
aborruso asked this question in Q&A
Discussion options

You must be logged in to vote

If I set the API key for multiple models, which one is used as the default model? Do I have to comment them all out and leave only one free?

If no model is set, it will try to detect a provider with keys configured:

https://github.com/ErikBjare/gptme/blob/54253a5db4ef37175402a650ba759ed842831619/gptme/llm/__init__.py#L273-L293

You can set multiple keys and use MODEL or -m/--model to chose a specific one.

for one API key I would use one model, for another key another model, but if I set two "MODEL" rightly gptme goes in error. The correct way to handle this is to choose the model at launch with --model and based on the model the right KEY API will be chosen?

Yes. The model prefix like a…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@aborruso
Comment options

@ErikBjare
Comment options

@aborruso
Comment options

Answer selected by ErikBjare
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants