fabric icon indicating copy to clipboard operation
fabric copied to clipboard

exporting Google models as DEFAULT_MODEL doesn't work; neither does specifying one with --model

Open AndreLeifert opened this issue 7 months ago • 1 comments

What happened?

cat /tmp/transcript.txt | fabric --pattern summarize --model gemini-1.5-flash results in an error while cat /tmp/transcript.txt | fabric --pattern summarize --model models/gemini-1.5-flash works

The "error" is in fetch_available_models inside utils.py - genai.list_models() precedes model names by models/. I am opening a fixing PR.

Version check

  • [X] Yes I was.

Relevant log output

Error: Error code: 404 - {'error': {'message': 'The model `gemini-1.5-flash` does not exist or you do not have access to it.', 'type': 'invalid_request_error', 'param': None, 'code': 'model_not_found'}}
Error code: 404 - {'error': {'message': 'The model `gemini-1.5-flash` does not exist or you do not have access to it.', 'type': 'invalid_request_error', 'param': None, 'code': 'model_not_found'}}

Relevant screenshots (optional)

No response

AndreLeifert avatar Jul 01 '24 16:07 AndreLeifert