groq-python
The official Python Library for the Groq API
File Explorer
Download Latest Version (.zip)- devcontainer.json
- Dockerfile
- ci.yml
- code-freeze-bypass.yaml
- publish-pypi.yml
- release-doctor.yml
- stale.yaml
- settings.json
- check-release-environment
- publish-pypi
- .keep
- chat_completion.py
- chat_completion_async.py
- chat_completion_async_streaming.py
- chat_completion_stop.py
- chat_completion_streaming.py
- embedding.py
- ruffen-docs.py
- upload-artifact.sh
- bootstrap
- format
- lint
- mock
- test
- __init__.py
- _compat.py
- _datetime_parse.py
- _json.py
- _logs.py
- _path.py
- _proxy.py
- _reflection.py
- _resources_proxy.py
- _streams.py
- _sync.py
- _transform.py
- _typing.py
- _utils.py
- .keep
- __init__.py
- audio.py
- speech.py
- transcriptions.py
- translations.py
- __init__.py
- chat.py
- completions.py
- __init__.py
- batches.py
- embeddings.py
- files.py
- models.py
- __init__.py
- speech_create_params.py
- transcription.py
- transcription_create_params.py
- translation.py
- translation_create_params.py
- __init__.py
- chat_completion.py
- chat_completion_assistant_message_param.py
- chat_completion_chunk.py
- chat_completion_content_part_image_param.py
- chat_completion_content_part_param.py
- chat_completion_content_part_text_param.py
- chat_completion_function_call_option_param.py
- chat_completion_function_message_param.py
- chat_completion_message.py
- chat_completion_message_param.py
- chat_completion_message_tool_call.py
- chat_completion_message_tool_call_param.py
- chat_completion_named_tool_choice_param.py
- chat_completion_role.py
- chat_completion_system_message_param.py
- chat_completion_token_logprob.py
- chat_completion_tool_choice_option_param.py
- chat_completion_tool_message_param.py
- chat_completion_tool_param.py
- chat_completion_user_message_param.py
- completion_create_params.py
- __init__.py
- error_object.py
- function_definition.py
- function_parameters.py
- __init__.py
- function_definition.py
- function_parameters.py
- __init__.py
- batch_cancel_response.py
- batch_create_params.py
- batch_create_response.py
- batch_list_response.py
- batch_retrieve_response.py
- completion_usage.py
- create_embedding_response.py
- embedding.py
- embedding_create_params.py
- file_create_params.py
- file_create_response.py
- file_delete_response.py
- file_info_response.py
- file_list_response.py
- model.py
- model_deleted.py
- model_list_response.py
- __init__.py
- _base_client.py
- _client.py
- _compat.py
- _constants.py
- _exceptions.py
- _files.py
- _models.py
- _qs.py
- _resource.py
- _response.py
- _streaming.py
- _types.py
- _version.py
- py.typed
- __init__.py
- test_speech.py
- test_transcriptions.py
- test_translations.py
- __init__.py
- test_completions.py
- __init__.py
- test_batches.py
- test_embeddings.py
- test_files.py
- test_models.py
- test_datetime_parse.py
- test_json.py
- test_path.py
- test_proxy.py
- test_typing.py
- __init__.py
- conftest.py
- sample_file.txt
- test_client.py
- test_extract_files.py
- test_files.py
- test_models.py
- test_qs.py
- test_required_args.py
- test_response.py
- test_streaming.py
- test_transform.py
- utils.py
- .gitignore
- .python-version
- .release-please-manifest.json
- .stats.yml
- api.md
- Brewfile
- CHANGELOG.md
- CODEOWNERS
- CONTRIBUTING.md
- LICENSE
- noxfile.py
- pyproject.toml
- README.md
- release-please-config.json
- requirements-dev.lock
- requirements.lock
- SECURITY.md
# Installation Guide
1. Get the code
git clone https://github.com/groq/groq-python
Downloads the entire project code from GitHub to your computer.
cd groq-python
Moves into the project folder you just downloaded.
2. Official Install Script
Easy RecommendedPrerequisites
- Python 3 Python is required to use pip.
pip install groq
Installs the package published on PyPI directly β no need to clone the source.
pip install groq[aiohttp]
Installs the package published on PyPI directly β no need to clone the source.
After installing, open a new terminal and run the program's version command (e.g. --version) to confirm it worked.
Pulled directly from this repo's README.
3. Python
EasyPrerequisites
pip install groq
Installs the package published on PyPI directly β no need to clone the source.
pip install groq[aiohttp]
Installs the package published on PyPI directly β no need to clone the source.
If it runs without errors and prints output in the terminal, it worked.
Pulled directly from this repo's README.
// repository documentation
Was this content helpful?
(0 ratings)
