Initial commit: Email alerts application
This commit is contained in:
@@ -0,0 +1 @@
|
||||
pip
|
||||
@@ -0,0 +1,520 @@
|
||||
Metadata-Version: 2.3
|
||||
Name: groq
|
||||
Version: 0.30.0
|
||||
Summary: The official Python library for the groq API
|
||||
Project-URL: Homepage, https://github.com/groq/groq-python
|
||||
Project-URL: Repository, https://github.com/groq/groq-python
|
||||
Author-email: Groq <support@groq.com>
|
||||
License: Apache-2.0
|
||||
Classifier: Intended Audience :: Developers
|
||||
Classifier: License :: OSI Approved :: Apache Software License
|
||||
Classifier: Operating System :: MacOS
|
||||
Classifier: Operating System :: Microsoft :: Windows
|
||||
Classifier: Operating System :: OS Independent
|
||||
Classifier: Operating System :: POSIX
|
||||
Classifier: Operating System :: POSIX :: Linux
|
||||
Classifier: Programming Language :: Python :: 3.8
|
||||
Classifier: Programming Language :: Python :: 3.9
|
||||
Classifier: Programming Language :: Python :: 3.10
|
||||
Classifier: Programming Language :: Python :: 3.11
|
||||
Classifier: Programming Language :: Python :: 3.12
|
||||
Classifier: Programming Language :: Python :: 3.13
|
||||
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
||||
Classifier: Typing :: Typed
|
||||
Requires-Python: >=3.8
|
||||
Requires-Dist: anyio<5,>=3.5.0
|
||||
Requires-Dist: distro<2,>=1.7.0
|
||||
Requires-Dist: httpx<1,>=0.23.0
|
||||
Requires-Dist: pydantic<3,>=1.9.0
|
||||
Requires-Dist: sniffio
|
||||
Requires-Dist: typing-extensions<5,>=4.10
|
||||
Provides-Extra: aiohttp
|
||||
Requires-Dist: aiohttp; extra == 'aiohttp'
|
||||
Requires-Dist: httpx-aiohttp>=0.1.6; extra == 'aiohttp'
|
||||
Description-Content-Type: text/markdown
|
||||
|
||||
# Groq Python API library
|
||||
|
||||
<!-- prettier-ignore -->
|
||||
[)](https://pypi.org/project/groq/)
|
||||
|
||||
The Groq Python library provides convenient access to the Groq REST API from any Python 3.8+
|
||||
application. The library includes type definitions for all request params and response fields,
|
||||
and offers both synchronous and asynchronous clients powered by [httpx](https://github.com/encode/httpx).
|
||||
|
||||
It is generated with [Stainless](https://www.stainless.com/).
|
||||
|
||||
## Documentation
|
||||
|
||||
The REST API documentation can be found on [console.groq.com](https://console.groq.com/docs). The full API of this library can be found in [api.md](https://github.com/groq/groq-python/tree/main/api.md).
|
||||
|
||||
## Installation
|
||||
|
||||
```sh
|
||||
# install from PyPI
|
||||
pip install groq
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
The full API of this library can be found in [api.md](https://github.com/groq/groq-python/tree/main/api.md).
|
||||
|
||||
```python
|
||||
import os
|
||||
from groq import Groq
|
||||
|
||||
client = Groq(
|
||||
api_key=os.environ.get("GROQ_API_KEY"), # This is the default and can be omitted
|
||||
)
|
||||
|
||||
chat_completion = client.chat.completions.create(
|
||||
messages=[
|
||||
{
|
||||
"role": "user",
|
||||
"content": "Explain the importance of low latency LLMs",
|
||||
}
|
||||
],
|
||||
model="llama3-8b-8192",
|
||||
)
|
||||
print(chat_completion.choices[0].message.content)
|
||||
```
|
||||
|
||||
While you can provide an `api_key` keyword argument,
|
||||
we recommend using [python-dotenv](https://pypi.org/project/python-dotenv/)
|
||||
to add `GROQ_API_KEY="My API Key"` to your `.env` file
|
||||
so that your API Key is not stored in source control.
|
||||
|
||||
## Async usage
|
||||
|
||||
Simply import `AsyncGroq` instead of `Groq` and use `await` with each API call:
|
||||
|
||||
```python
|
||||
import os
|
||||
import asyncio
|
||||
from groq import AsyncGroq
|
||||
|
||||
client = AsyncGroq(
|
||||
api_key=os.environ.get("GROQ_API_KEY"), # This is the default and can be omitted
|
||||
)
|
||||
|
||||
|
||||
async def main() -> None:
|
||||
chat_completion = await client.chat.completions.create(
|
||||
messages=[
|
||||
{
|
||||
"role": "user",
|
||||
"content": "Explain the importance of low latency LLMs",
|
||||
}
|
||||
],
|
||||
model="llama3-8b-8192",
|
||||
)
|
||||
print(chat_completion.choices[0].message.content)
|
||||
|
||||
|
||||
asyncio.run(main())
|
||||
```
|
||||
|
||||
Functionality between the synchronous and asynchronous clients is otherwise identical.
|
||||
|
||||
### With aiohttp
|
||||
|
||||
By default, the async client uses `httpx` for HTTP requests. However, for improved concurrency performance you may also use `aiohttp` as the HTTP backend.
|
||||
|
||||
You can enable this by installing `aiohttp`:
|
||||
|
||||
```sh
|
||||
# install from PyPI
|
||||
pip install groq[aiohttp]
|
||||
```
|
||||
|
||||
Then you can enable it by instantiating the client with `http_client=DefaultAioHttpClient()`:
|
||||
|
||||
```python
|
||||
import os
|
||||
import asyncio
|
||||
from groq import DefaultAioHttpClient
|
||||
from groq import AsyncGroq
|
||||
|
||||
|
||||
async def main() -> None:
|
||||
async with AsyncGroq(
|
||||
api_key=os.environ.get("GROQ_API_KEY"), # This is the default and can be omitted
|
||||
http_client=DefaultAioHttpClient(),
|
||||
) as client:
|
||||
chat_completion = await client.chat.completions.create(
|
||||
messages=[
|
||||
{
|
||||
"role": "user",
|
||||
"content": "Explain the importance of low latency LLMs",
|
||||
}
|
||||
],
|
||||
model="llama3-8b-8192",
|
||||
)
|
||||
print(chat_completion.id)
|
||||
|
||||
|
||||
asyncio.run(main())
|
||||
```
|
||||
|
||||
## Using types
|
||||
|
||||
Nested request parameters are [TypedDicts](https://docs.python.org/3/library/typing.html#typing.TypedDict). Responses are [Pydantic models](https://docs.pydantic.dev) which also provide helper methods for things like:
|
||||
|
||||
- Serializing back into JSON, `model.to_json()`
|
||||
- Converting to a dictionary, `model.to_dict()`
|
||||
|
||||
Typed requests and responses provide autocomplete and documentation within your editor. If you would like to see type errors in VS Code to help catch bugs earlier, set `python.analysis.typeCheckingMode` to `basic`.
|
||||
|
||||
## Nested params
|
||||
|
||||
Nested parameters are dictionaries, typed using `TypedDict`, for example:
|
||||
|
||||
```python
|
||||
from groq import Groq
|
||||
|
||||
client = Groq()
|
||||
|
||||
chat_completion = client.chat.completions.create(
|
||||
messages=[
|
||||
{
|
||||
"content": "string",
|
||||
"role": "system",
|
||||
}
|
||||
],
|
||||
model="meta-llama/llama-4-scout-17b-16e-instruct",
|
||||
search_settings={},
|
||||
)
|
||||
print(chat_completion.search_settings)
|
||||
```
|
||||
|
||||
## File uploads
|
||||
|
||||
Request parameters that correspond to file uploads can be passed as `bytes`, or a [`PathLike`](https://docs.python.org/3/library/os.html#os.PathLike) instance or a tuple of `(filename, contents, media type)`.
|
||||
|
||||
```python
|
||||
from pathlib import Path
|
||||
from groq import Groq
|
||||
|
||||
client = Groq()
|
||||
|
||||
client.audio.transcriptions.create(
|
||||
model="whisper-large-v3-turbo",
|
||||
file=Path("/path/to/file"),
|
||||
)
|
||||
```
|
||||
|
||||
The async client uses the exact same interface. If you pass a [`PathLike`](https://docs.python.org/3/library/os.html#os.PathLike) instance, the file contents will be read asynchronously automatically.
|
||||
|
||||
## Handling errors
|
||||
|
||||
When the library is unable to connect to the API (for example, due to network connection problems or a timeout), a subclass of `groq.APIConnectionError` is raised.
|
||||
|
||||
When the API returns a non-success status code (that is, 4xx or 5xx
|
||||
response), a subclass of `groq.APIStatusError` is raised, containing `status_code` and `response` properties.
|
||||
|
||||
All errors inherit from `groq.APIError`.
|
||||
|
||||
```python
|
||||
import groq
|
||||
from groq import Groq
|
||||
|
||||
client = Groq()
|
||||
|
||||
try:
|
||||
client.chat.completions.create(
|
||||
messages=[
|
||||
{
|
||||
"role": "system",
|
||||
"content": "You are a helpful assistant.",
|
||||
},
|
||||
{
|
||||
"role": "user",
|
||||
"content": "Explain the importance of low latency LLMs",
|
||||
},
|
||||
],
|
||||
model="llama3-8b-8192",
|
||||
)
|
||||
except groq.APIConnectionError as e:
|
||||
print("The server could not be reached")
|
||||
print(e.__cause__) # an underlying Exception, likely raised within httpx.
|
||||
except groq.RateLimitError as e:
|
||||
print("A 429 status code was received; we should back off a bit.")
|
||||
except groq.APIStatusError as e:
|
||||
print("Another non-200-range status code was received")
|
||||
print(e.status_code)
|
||||
print(e.response)
|
||||
```
|
||||
|
||||
Error codes are as follows:
|
||||
|
||||
| Status Code | Error Type |
|
||||
| ----------- | -------------------------- |
|
||||
| 400 | `BadRequestError` |
|
||||
| 401 | `AuthenticationError` |
|
||||
| 403 | `PermissionDeniedError` |
|
||||
| 404 | `NotFoundError` |
|
||||
| 422 | `UnprocessableEntityError` |
|
||||
| 429 | `RateLimitError` |
|
||||
| >=500 | `InternalServerError` |
|
||||
| N/A | `APIConnectionError` |
|
||||
|
||||
### Retries
|
||||
|
||||
Certain errors are automatically retried 2 times by default, with a short exponential backoff.
|
||||
Connection errors (for example, due to a network connectivity problem), 408 Request Timeout, 409 Conflict,
|
||||
429 Rate Limit, and >=500 Internal errors are all retried by default.
|
||||
|
||||
You can use the `max_retries` option to configure or disable retry settings:
|
||||
|
||||
```python
|
||||
from groq import Groq
|
||||
|
||||
# Configure the default for all requests:
|
||||
client = Groq(
|
||||
# default is 2
|
||||
max_retries=0,
|
||||
)
|
||||
|
||||
# Or, configure per-request:
|
||||
client.with_options(max_retries=5).chat.completions.create(
|
||||
messages=[
|
||||
{
|
||||
"role": "system",
|
||||
"content": "You are a helpful assistant.",
|
||||
},
|
||||
{
|
||||
"role": "user",
|
||||
"content": "Explain the importance of low latency LLMs",
|
||||
},
|
||||
],
|
||||
model="llama3-8b-8192",
|
||||
)
|
||||
```
|
||||
|
||||
### Timeouts
|
||||
|
||||
By default requests time out after 1 minute. You can configure this with a `timeout` option,
|
||||
which accepts a float or an [`httpx.Timeout`](https://www.python-httpx.org/advanced/timeouts/#fine-tuning-the-configuration) object:
|
||||
|
||||
```python
|
||||
from groq import Groq
|
||||
|
||||
# Configure the default for all requests:
|
||||
client = Groq(
|
||||
# 20 seconds (default is 1 minute)
|
||||
timeout=20.0,
|
||||
)
|
||||
|
||||
# More granular control:
|
||||
client = Groq(
|
||||
timeout=httpx.Timeout(60.0, read=5.0, write=10.0, connect=2.0),
|
||||
)
|
||||
|
||||
# Override per-request:
|
||||
client.with_options(timeout=5.0).chat.completions.create(
|
||||
messages=[
|
||||
{
|
||||
"role": "system",
|
||||
"content": "You are a helpful assistant.",
|
||||
},
|
||||
{
|
||||
"role": "user",
|
||||
"content": "Explain the importance of low latency LLMs",
|
||||
},
|
||||
],
|
||||
model="llama3-8b-8192",
|
||||
)
|
||||
```
|
||||
|
||||
On timeout, an `APITimeoutError` is thrown.
|
||||
|
||||
Note that requests that time out are [retried twice by default](https://github.com/groq/groq-python/tree/main/#retries).
|
||||
|
||||
## Advanced
|
||||
|
||||
### Logging
|
||||
|
||||
We use the standard library [`logging`](https://docs.python.org/3/library/logging.html) module.
|
||||
|
||||
You can enable logging by setting the environment variable `GROQ_LOG` to `info`.
|
||||
|
||||
```shell
|
||||
$ export GROQ_LOG=info
|
||||
```
|
||||
|
||||
Or to `debug` for more verbose logging.
|
||||
|
||||
### How to tell whether `None` means `null` or missing
|
||||
|
||||
In an API response, a field may be explicitly `null`, or missing entirely; in either case, its value is `None` in this library. You can differentiate the two cases with `.model_fields_set`:
|
||||
|
||||
```py
|
||||
if response.my_field is None:
|
||||
if 'my_field' not in response.model_fields_set:
|
||||
print('Got json like {}, without a "my_field" key present at all.')
|
||||
else:
|
||||
print('Got json like {"my_field": null}.')
|
||||
```
|
||||
|
||||
### Accessing raw response data (e.g. headers)
|
||||
|
||||
The "raw" Response object can be accessed by prefixing `.with_raw_response.` to any HTTP method call, e.g.,
|
||||
|
||||
```py
|
||||
from groq import Groq
|
||||
|
||||
client = Groq()
|
||||
response = client.chat.completions.with_raw_response.create(
|
||||
messages=[{
|
||||
"role": "system",
|
||||
"content": "You are a helpful assistant.",
|
||||
}, {
|
||||
"role": "user",
|
||||
"content": "Explain the importance of low latency LLMs",
|
||||
}],
|
||||
model="llama3-8b-8192",
|
||||
)
|
||||
print(response.headers.get('X-My-Header'))
|
||||
|
||||
completion = response.parse() # get the object that `chat.completions.create()` would have returned
|
||||
print(completion.id)
|
||||
```
|
||||
|
||||
These methods return an [`APIResponse`](https://github.com/groq/groq-python/tree/main/src/groq/_response.py) object.
|
||||
|
||||
The async client returns an [`AsyncAPIResponse`](https://github.com/groq/groq-python/tree/main/src/groq/_response.py) with the same structure, the only difference being `await`able methods for reading the response content.
|
||||
|
||||
#### `.with_streaming_response`
|
||||
|
||||
The above interface eagerly reads the full response body when you make the request, which may not always be what you want.
|
||||
|
||||
To stream the response body, use `.with_streaming_response` instead, which requires a context manager and only reads the response body once you call `.read()`, `.text()`, `.json()`, `.iter_bytes()`, `.iter_text()`, `.iter_lines()` or `.parse()`. In the async client, these are async methods.
|
||||
|
||||
```python
|
||||
with client.chat.completions.with_streaming_response.create(
|
||||
messages=[
|
||||
{
|
||||
"role": "system",
|
||||
"content": "You are a helpful assistant.",
|
||||
},
|
||||
{
|
||||
"role": "user",
|
||||
"content": "Explain the importance of low latency LLMs",
|
||||
},
|
||||
],
|
||||
model="llama3-8b-8192",
|
||||
) as response:
|
||||
print(response.headers.get("X-My-Header"))
|
||||
|
||||
for line in response.iter_lines():
|
||||
print(line)
|
||||
```
|
||||
|
||||
The context manager is required so that the response will reliably be closed.
|
||||
|
||||
### Making custom/undocumented requests
|
||||
|
||||
This library is typed for convenient access to the documented API.
|
||||
|
||||
If you need to access undocumented endpoints, params, or response properties, the library can still be used.
|
||||
|
||||
#### Undocumented endpoints
|
||||
|
||||
To make requests to undocumented endpoints, you can make requests using `client.get`, `client.post`, and other
|
||||
http verbs. Options on the client will be respected (such as retries) when making this request.
|
||||
|
||||
```py
|
||||
import httpx
|
||||
|
||||
response = client.post(
|
||||
"/foo",
|
||||
cast_to=httpx.Response,
|
||||
body={"my_param": True},
|
||||
)
|
||||
|
||||
print(response.headers.get("x-foo"))
|
||||
```
|
||||
|
||||
#### Undocumented request params
|
||||
|
||||
If you want to explicitly send an extra param, you can do so with the `extra_query`, `extra_body`, and `extra_headers` request
|
||||
options.
|
||||
|
||||
#### Undocumented response properties
|
||||
|
||||
To access undocumented response properties, you can access the extra fields like `response.unknown_prop`. You
|
||||
can also get all the extra fields on the Pydantic model as a dict with
|
||||
[`response.model_extra`](https://docs.pydantic.dev/latest/api/base_model/#pydantic.BaseModel.model_extra).
|
||||
|
||||
### Configuring the HTTP client
|
||||
|
||||
You can directly override the [httpx client](https://www.python-httpx.org/api/#client) to customize it for your use case, including:
|
||||
|
||||
- Support for [proxies](https://www.python-httpx.org/advanced/proxies/)
|
||||
- Custom [transports](https://www.python-httpx.org/advanced/transports/)
|
||||
- Additional [advanced](https://www.python-httpx.org/advanced/clients/) functionality
|
||||
|
||||
```python
|
||||
import httpx
|
||||
from groq import Groq, DefaultHttpxClient
|
||||
|
||||
client = Groq(
|
||||
# Or use the `GROQ_BASE_URL` env var
|
||||
base_url="http://my.test.server.example.com:8083",
|
||||
http_client=DefaultHttpxClient(
|
||||
proxy="http://my.test.proxy.example.com",
|
||||
transport=httpx.HTTPTransport(local_address="0.0.0.0"),
|
||||
),
|
||||
)
|
||||
```
|
||||
|
||||
You can also customize the client on a per-request basis by using `with_options()`:
|
||||
|
||||
```python
|
||||
client.with_options(http_client=DefaultHttpxClient(...))
|
||||
```
|
||||
|
||||
### Managing HTTP resources
|
||||
|
||||
By default the library closes underlying HTTP connections whenever the client is [garbage collected](https://docs.python.org/3/reference/datamodel.html#object.__del__). You can manually close the client using the `.close()` method if desired, or with a context manager that closes when exiting.
|
||||
|
||||
```py
|
||||
from groq import Groq
|
||||
|
||||
with Groq() as client:
|
||||
# make requests here
|
||||
...
|
||||
|
||||
# HTTP client is now closed
|
||||
```
|
||||
|
||||
## Versioning
|
||||
|
||||
This package generally follows [SemVer](https://semver.org/spec/v2.0.0.html) conventions, though certain backwards-incompatible changes may be released as minor versions:
|
||||
|
||||
1. Changes that only affect static types, without breaking runtime behavior.
|
||||
2. Changes to library internals which are technically public but not intended or documented for external use. _(Please open a GitHub issue to let us know if you are relying on such internals.)_
|
||||
3. Changes that we do not expect to impact the vast majority of users in practice.
|
||||
|
||||
We take backwards-compatibility seriously and work hard to ensure you can rely on a smooth upgrade experience.
|
||||
|
||||
We are keen for your feedback; please open an [issue](https://www.github.com/groq/groq-python/issues) with questions, bugs, or suggestions.
|
||||
|
||||
### Determining the installed version
|
||||
|
||||
If you've upgraded to the latest version but aren't seeing any new features you were expecting then your python environment is likely still using an older version.
|
||||
|
||||
You can determine the version that is being used at runtime with:
|
||||
|
||||
```py
|
||||
import groq
|
||||
print(groq.__version__)
|
||||
```
|
||||
|
||||
## Requirements
|
||||
|
||||
Python 3.8 or higher.
|
||||
|
||||
## Contributing
|
||||
|
||||
See [the contributing documentation](https://github.com/groq/groq-python/tree/main/./CONTRIBUTING.md).
|
||||
@@ -0,0 +1,188 @@
|
||||
groq-0.30.0.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
|
||||
groq-0.30.0.dist-info/METADATA,sha256=IMIq13iyQVRl53TzKsn2aqWT0HLV35cKcJ6uppRPQPo,16431
|
||||
groq-0.30.0.dist-info/RECORD,,
|
||||
groq-0.30.0.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
||||
groq-0.30.0.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
|
||||
groq-0.30.0.dist-info/licenses/LICENSE,sha256=XyMUyPVTuL8gS25qxMomI_ZlP10bOoqa_4bndaZdPp4,11334
|
||||
groq/__init__.py,sha256=hdfWoKRw1kBvOqPyYH-_8pRqTxehb4XqXqwqtCFOB6Y,2560
|
||||
groq/__pycache__/__init__.cpython-311.pyc,,
|
||||
groq/__pycache__/_base_client.cpython-311.pyc,,
|
||||
groq/__pycache__/_client.cpython-311.pyc,,
|
||||
groq/__pycache__/_compat.cpython-311.pyc,,
|
||||
groq/__pycache__/_constants.cpython-311.pyc,,
|
||||
groq/__pycache__/_exceptions.cpython-311.pyc,,
|
||||
groq/__pycache__/_files.cpython-311.pyc,,
|
||||
groq/__pycache__/_models.cpython-311.pyc,,
|
||||
groq/__pycache__/_qs.cpython-311.pyc,,
|
||||
groq/__pycache__/_resource.cpython-311.pyc,,
|
||||
groq/__pycache__/_response.cpython-311.pyc,,
|
||||
groq/__pycache__/_streaming.cpython-311.pyc,,
|
||||
groq/__pycache__/_types.cpython-311.pyc,,
|
||||
groq/__pycache__/_version.cpython-311.pyc,,
|
||||
groq/_base_client.py,sha256=4-b-dzgdQyHt3rJ20Xf7dKqHAMjuyVf2PIC5MVDQdUk,66713
|
||||
groq/_client.py,sha256=znuG9AkeNSveiXdyhFVnSk_vEDySN_ttMXDasxd39t0,21781
|
||||
groq/_compat.py,sha256=VWemUKbj6DDkQ-O4baSpHVLJafotzeXmCQGJugfVTIw,6580
|
||||
groq/_constants.py,sha256=S14PFzyN9-I31wiV7SmIlL5Ga0MLHxdvegInGdXH7tM,462
|
||||
groq/_exceptions.py,sha256=vwW8IIMnMqCbK8vALhJ-xypkaRN5t44TWdlOPPvs72o,3216
|
||||
groq/_files.py,sha256=_p1urOfbARaVam7c6CnXweaekhi3Wqaj-MpFpHDjq7A,3612
|
||||
groq/_models.py,sha256=viD5E6aDMhxslcFHDYvkHaKzE8YLcNmsPsMe8STixvs,29294
|
||||
groq/_qs.py,sha256=AOkSz4rHtK4YI3ZU_kzea-zpwBUgEY8WniGmTPyEimc,4846
|
||||
groq/_resource.py,sha256=wjIIjnrEuLKT2QMKq7EyqL3MAj8sBzVpXZ3aiNgO-B8,1088
|
||||
groq/_response.py,sha256=oVQZfB-v_TY3ELq1-UgEkE9hGvdGtmdevl9J7T9sdVE,28776
|
||||
groq/_streaming.py,sha256=xRlSI9YDpN6dj4rOGP6-q4OVQHID7zdd9jmb_JXxH-c,13094
|
||||
groq/_types.py,sha256=YESVXRArqE48wkmvKp-c61Fi2TPX-NjQTEakZnySr6Y,6195
|
||||
groq/_utils/__init__.py,sha256=PNZ_QJuzZEgyYXqkO1HVhGkj5IU9bglVUcw7H-Knjzw,2062
|
||||
groq/_utils/__pycache__/__init__.cpython-311.pyc,,
|
||||
groq/_utils/__pycache__/_logs.cpython-311.pyc,,
|
||||
groq/_utils/__pycache__/_proxy.cpython-311.pyc,,
|
||||
groq/_utils/__pycache__/_reflection.cpython-311.pyc,,
|
||||
groq/_utils/__pycache__/_resources_proxy.cpython-311.pyc,,
|
||||
groq/_utils/__pycache__/_streams.cpython-311.pyc,,
|
||||
groq/_utils/__pycache__/_sync.cpython-311.pyc,,
|
||||
groq/_utils/__pycache__/_transform.cpython-311.pyc,,
|
||||
groq/_utils/__pycache__/_typing.cpython-311.pyc,,
|
||||
groq/_utils/__pycache__/_utils.cpython-311.pyc,,
|
||||
groq/_utils/_logs.py,sha256=5CMKGQJLSze48WFXOeqP08hwJxTyTtRuBuXv0bcWy_U,768
|
||||
groq/_utils/_proxy.py,sha256=aglnj2yBTDyGX9Akk2crZHrl10oqRmceUy2Zp008XEs,1975
|
||||
groq/_utils/_reflection.py,sha256=ZmGkIgT_PuwedyNBrrKGbxoWtkpytJNU1uU4QHnmEMU,1364
|
||||
groq/_utils/_resources_proxy.py,sha256=XsNi_AWz-qFBb5Q2NdmYpLIBH3iTypXDBwXANPb_yco,579
|
||||
groq/_utils/_streams.py,sha256=SMC90diFFecpEg_zgDRVbdR3hSEIgVVij4taD-noMLM,289
|
||||
groq/_utils/_sync.py,sha256=TpGLrrhRNWTJtODNE6Fup3_k7zrWm1j2RlirzBwre-0,2862
|
||||
groq/_utils/_transform.py,sha256=n7kskEWz6o__aoNvhFoGVyDoalNe6mJwp-g7BWkdj88,15617
|
||||
groq/_utils/_typing.py,sha256=D0DbbNu8GnYQTSICnTSHDGsYXj8TcAKyhejb0XcnjtY,4602
|
||||
groq/_utils/_utils.py,sha256=ts4CiiuNpFiGB6YMdkQRh2SZvYvsl7mAF-JWHCcLDf4,12312
|
||||
groq/_version.py,sha256=NkcscINUor-_oZelwDREwy1HGe02c8WKY4ynnp0Jx1M,157
|
||||
groq/lib/.keep,sha256=wuNrz-5SXo3jJaJOJgz4vFHM41YH_g20F5cRQo0vLes,224
|
||||
groq/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
||||
groq/resources/__init__.py,sha256=Y5Mtyd_Z0Vuvs-1p5xoJmU2apggpWNzLE-7uZM2s5Bg,2239
|
||||
groq/resources/__pycache__/__init__.cpython-311.pyc,,
|
||||
groq/resources/__pycache__/batches.cpython-311.pyc,,
|
||||
groq/resources/__pycache__/embeddings.cpython-311.pyc,,
|
||||
groq/resources/__pycache__/files.cpython-311.pyc,,
|
||||
groq/resources/__pycache__/models.cpython-311.pyc,,
|
||||
groq/resources/audio/__init__.py,sha256=xcBhPQzsx2-9FZzb7j6owwQOoKwEOf0D3dBfg5h6_u0,1687
|
||||
groq/resources/audio/__pycache__/__init__.cpython-311.pyc,,
|
||||
groq/resources/audio/__pycache__/audio.cpython-311.pyc,,
|
||||
groq/resources/audio/__pycache__/speech.cpython-311.pyc,,
|
||||
groq/resources/audio/__pycache__/transcriptions.cpython-311.pyc,,
|
||||
groq/resources/audio/__pycache__/translations.cpython-311.pyc,,
|
||||
groq/resources/audio/audio.py,sha256=NclBmlIHQMpzXIXtefQ7ffcPQQFaOBWB_W9Bu6cFvts,5475
|
||||
groq/resources/audio/speech.py,sha256=7lGD5WYblftcfbLbFxfcfE3w8huYYTOMtmRMZxbhZ_I,8451
|
||||
groq/resources/audio/transcriptions.py,sha256=AYdEWjn58CPS_MwfOPJbzfttcYwP7KL5IHhsa5I7kzs,17312
|
||||
groq/resources/audio/translations.py,sha256=cULMa1OBONrlOMg6V_nzCe2x9QYJA4TK_Fz117bQTxs,10512
|
||||
groq/resources/batches.py,sha256=0Sn9QahDLB9iFCebrsgrWT6cXgmNjB3Yp65Dccyhr_w,16296
|
||||
groq/resources/chat/__init__.py,sha256=8Q9ODRo1wIpFa34VaNwuaWFmxqFxagDtUhIAkQNvxEU,849
|
||||
groq/resources/chat/__pycache__/__init__.cpython-311.pyc,,
|
||||
groq/resources/chat/__pycache__/chat.cpython-311.pyc,,
|
||||
groq/resources/chat/__pycache__/completions.cpython-311.pyc,,
|
||||
groq/resources/chat/chat.py,sha256=PPXzUUV8ZUudR1_ttjLj2SUAlqpJRLBNe6LQ_rJSahQ,3336
|
||||
groq/resources/chat/completions.py,sha256=VscqnbJQUPGvrZylM0BaiaCyK3h-tWuVwDwdgYy7zxM,44870
|
||||
groq/resources/embeddings.py,sha256=E4kqcYUv_s6_MtcBam2-YpzBsfN7XIaPqjyE3iEZcRY,8081
|
||||
groq/resources/files.py,sha256=wC12m9-2rgzdwpaVDOHq-Ghwl268rGtocItChEg0wYA,19390
|
||||
groq/resources/models.py,sha256=cb0EVFgMusCIer5bR2ukRAzQ6XaiE-lwKqj9clzggcA,10524
|
||||
groq/types/__init__.py,sha256=IIZLScyVbUcIfYIYngxYNPUA4hnx5ZEHH-hJi2TA7Wo,1459
|
||||
groq/types/__pycache__/__init__.cpython-311.pyc,,
|
||||
groq/types/__pycache__/batch_cancel_response.cpython-311.pyc,,
|
||||
groq/types/__pycache__/batch_create_params.cpython-311.pyc,,
|
||||
groq/types/__pycache__/batch_create_response.cpython-311.pyc,,
|
||||
groq/types/__pycache__/batch_list_response.cpython-311.pyc,,
|
||||
groq/types/__pycache__/batch_retrieve_response.cpython-311.pyc,,
|
||||
groq/types/__pycache__/completion_usage.cpython-311.pyc,,
|
||||
groq/types/__pycache__/create_embedding_response.cpython-311.pyc,,
|
||||
groq/types/__pycache__/embedding.cpython-311.pyc,,
|
||||
groq/types/__pycache__/embedding_create_params.cpython-311.pyc,,
|
||||
groq/types/__pycache__/file_create_params.cpython-311.pyc,,
|
||||
groq/types/__pycache__/file_create_response.cpython-311.pyc,,
|
||||
groq/types/__pycache__/file_delete_response.cpython-311.pyc,,
|
||||
groq/types/__pycache__/file_info_response.cpython-311.pyc,,
|
||||
groq/types/__pycache__/file_list_response.cpython-311.pyc,,
|
||||
groq/types/__pycache__/model.cpython-311.pyc,,
|
||||
groq/types/__pycache__/model_deleted.cpython-311.pyc,,
|
||||
groq/types/__pycache__/model_list_response.cpython-311.pyc,,
|
||||
groq/types/audio/__init__.py,sha256=slwR2gZwYMmTpPihbr1a2rryQuyfqeAGzgjluQwlmN4,494
|
||||
groq/types/audio/__pycache__/__init__.cpython-311.pyc,,
|
||||
groq/types/audio/__pycache__/speech_create_params.cpython-311.pyc,,
|
||||
groq/types/audio/__pycache__/transcription.cpython-311.pyc,,
|
||||
groq/types/audio/__pycache__/transcription_create_params.cpython-311.pyc,,
|
||||
groq/types/audio/__pycache__/translation.cpython-311.pyc,,
|
||||
groq/types/audio/__pycache__/translation_create_params.cpython-311.pyc,,
|
||||
groq/types/audio/speech_create_params.py,sha256=XQ8DBVR3WT4bP5xI-lcIxEbQCS-P7_VoE9G_YdqhYjc,1009
|
||||
groq/types/audio/transcription.py,sha256=4Ysi29mo2EWDkbT1pCUvp9ZrYdF-uo0hYe04XPnxxQQ,229
|
||||
groq/types/audio/transcription_create_params.py,sha256=fMgwpuc2uRX0EAzvwRYwT_k2cEEcoLhp_wvoNjK9MUk,4337
|
||||
groq/types/audio/translation.py,sha256=Dlu9YMo0cc44NSCAtLfZnEugkM7VBA6zw2v9bfrLMh0,193
|
||||
groq/types/audio/translation_create_params.py,sha256=DALLx145-hPWJyPIFZKqGbgv6F98o5vBZTlv_lw__Uw,1676
|
||||
groq/types/batch_cancel_response.py,sha256=kyPqallPOAGpzHW6Ta8l43-M42pUanwwGUFYGXy8414,3341
|
||||
groq/types/batch_create_params.py,sha256=wd6NfWvj0yoqvXCFiRjMGpZl3VROLe43XVrptOeIaEI,1090
|
||||
groq/types/batch_create_response.py,sha256=rX7ifkOCgs8SM6PE6w1URFoxKMSb4LA1RbwX1GFILdA,3341
|
||||
groq/types/batch_list_response.py,sha256=0ZbKLpa2szl8-egKep-fwDqNu0PRIU1gfF9N8WNFUMc,3456
|
||||
groq/types/batch_retrieve_response.py,sha256=pp0PwXRYNdEwoKcke_AlCldp3OJPzHTetnyuzoZFwaI,3345
|
||||
groq/types/chat/__init__.py,sha256=waUSt926WgCuTOyde_4XXkn36Hd6GhiPZr2KWYMZVy0,2464
|
||||
groq/types/chat/__pycache__/__init__.cpython-311.pyc,,
|
||||
groq/types/chat/__pycache__/chat_completion.cpython-311.pyc,,
|
||||
groq/types/chat/__pycache__/chat_completion_assistant_message_param.cpython-311.pyc,,
|
||||
groq/types/chat/__pycache__/chat_completion_chunk.cpython-311.pyc,,
|
||||
groq/types/chat/__pycache__/chat_completion_content_part_image_param.cpython-311.pyc,,
|
||||
groq/types/chat/__pycache__/chat_completion_content_part_param.cpython-311.pyc,,
|
||||
groq/types/chat/__pycache__/chat_completion_content_part_text_param.cpython-311.pyc,,
|
||||
groq/types/chat/__pycache__/chat_completion_function_call_option_param.cpython-311.pyc,,
|
||||
groq/types/chat/__pycache__/chat_completion_function_message_param.cpython-311.pyc,,
|
||||
groq/types/chat/__pycache__/chat_completion_message.cpython-311.pyc,,
|
||||
groq/types/chat/__pycache__/chat_completion_message_param.cpython-311.pyc,,
|
||||
groq/types/chat/__pycache__/chat_completion_message_tool_call.cpython-311.pyc,,
|
||||
groq/types/chat/__pycache__/chat_completion_message_tool_call_param.cpython-311.pyc,,
|
||||
groq/types/chat/__pycache__/chat_completion_named_tool_choice_param.cpython-311.pyc,,
|
||||
groq/types/chat/__pycache__/chat_completion_role.cpython-311.pyc,,
|
||||
groq/types/chat/__pycache__/chat_completion_system_message_param.cpython-311.pyc,,
|
||||
groq/types/chat/__pycache__/chat_completion_token_logprob.cpython-311.pyc,,
|
||||
groq/types/chat/__pycache__/chat_completion_tool_choice_option_param.cpython-311.pyc,,
|
||||
groq/types/chat/__pycache__/chat_completion_tool_message_param.cpython-311.pyc,,
|
||||
groq/types/chat/__pycache__/chat_completion_tool_param.cpython-311.pyc,,
|
||||
groq/types/chat/__pycache__/chat_completion_user_message_param.cpython-311.pyc,,
|
||||
groq/types/chat/__pycache__/completion_create_params.cpython-311.pyc,,
|
||||
groq/types/chat/chat_completion.py,sha256=3YPmB_BMiBaUO8vW50gmoe0QHOX0tLqmvCNqO4AMj2E,2784
|
||||
groq/types/chat/chat_completion_assistant_message_param.py,sha256=dYoCKeelHUMPN8riGbffR3iAVRIW8Bdxx4zjUqMdhhE,1941
|
||||
groq/types/chat/chat_completion_chunk.py,sha256=1GVGWR0buvEO2106Tk92teXX1rO8SQ-aXTpUDbtfljo,5501
|
||||
groq/types/chat/chat_completion_content_part_image_param.py,sha256=_JTAMYdbTc60hSedXsMQhFyLi1jGynraf-Ig5FU2k1c,660
|
||||
groq/types/chat/chat_completion_content_part_param.py,sha256=8hoTnNqerHjaHGMFU8CvhjVbH8yChXEYxs3jLWKfod8,543
|
||||
groq/types/chat/chat_completion_content_part_text_param.py,sha256=4IpiXMKM9AuTyop5PRptPBbBhh9s93xy2vjg4Yw6NIw,429
|
||||
groq/types/chat/chat_completion_function_call_option_param.py,sha256=M-IqWHyBLkvYBcwFxxp4ydCIxbPDaMlNl4bik9UoFd4,365
|
||||
groq/types/chat/chat_completion_function_message_param.py,sha256=jIaZbBHHbt4v4xHCIyvYtYLst_X4jOznRjYNcTf0MF0,591
|
||||
groq/types/chat/chat_completion_message.py,sha256=8n8wS7mJLdg-4q5ij4KdIXQINjfMeRnaH5Po5hbWb6U,5468
|
||||
groq/types/chat/chat_completion_message_param.py,sha256=RFer4ZYXxVed9F0ulkqi0xNy_eOhp63Y-0oN24dhVBI,889
|
||||
groq/types/chat/chat_completion_message_tool_call.py,sha256=XlIe2vhSYvrt8o8Yol5AQqnacI1xHqpEIV26G4oNrZY,900
|
||||
groq/types/chat/chat_completion_message_tool_call_param.py,sha256=XNhuUpGr5qwVTo0K8YavJwleHYSdwN_urK51eKlqC24,1009
|
||||
groq/types/chat/chat_completion_named_tool_choice_param.py,sha256=JsxfSJYpOmF7zIreQ0JrXRSLp07OGCBSycRRcF6OZmg,569
|
||||
groq/types/chat/chat_completion_role.py,sha256=Rdzg4deI1uZmqgkwnMrLHvbV2fPRqKcHLQrVmKVk9Dw,262
|
||||
groq/types/chat/chat_completion_system_message_param.py,sha256=WYtzmsNP8ZI3Ie8cd-oU7RuNoaBF6-bBR3mOzST9hMw,815
|
||||
groq/types/chat/chat_completion_token_logprob.py,sha256=6-ipUFfsXMf5L7FDFi127NaVkDtmEooVgGBF6Ts965A,1769
|
||||
groq/types/chat/chat_completion_tool_choice_option_param.py,sha256=ef71WSM9HMQhIQUocRgVJUVW-bSRwK2_1NjFSB5TPiI,472
|
||||
groq/types/chat/chat_completion_tool_message_param.py,sha256=d7dZnXli2TwtTCwplKEverQ1iQ293JRnnGsZp1_9h6c,717
|
||||
groq/types/chat/chat_completion_tool_param.py,sha256=J9r2TAWygkIBDInWEKx29gBE0wiCgc7HpXFyQhxSkAU,503
|
||||
groq/types/chat/chat_completion_user_message_param.py,sha256=mik-MRkwb543C5FSJ52LtTkeA2E_HdLUgtoHEdO73XQ,792
|
||||
groq/types/chat/completion_create_params.py,sha256=AEveKU84o1IdH3ElgmTsPFcsdLFtVY6bwA0OyetVWsM,12199
|
||||
groq/types/completion_usage.py,sha256=MkWLiOmSPCveQU9kp_moCXPS1GASBQhq7ecAMNOeyiQ,809
|
||||
groq/types/create_embedding_response.py,sha256=lTAu_Pym76kFljDnnDRoDB2GNQSzWmwwlqf5ff7FNPM,798
|
||||
groq/types/embedding.py,sha256=rlM_cs8um94yOf9kHWlURzVyGsIjzvzD0xzEjMaUVpU,629
|
||||
groq/types/embedding_create_params.py,sha256=zbdG6oBqDKXzPw3QqL6NR_ZJhkBUFaEA53keEECHxn8,1054
|
||||
groq/types/file_create_params.py,sha256=Y-y3q3AvKHe_fZuTylvfwQvUDaJ1IUNNAVpBdJvSwu0,550
|
||||
groq/types/file_create_response.py,sha256=6fG5RPH1XrvNqqWbb7DPTrqpBWEJk5pTutbAYwzBmK8,884
|
||||
groq/types/file_delete_response.py,sha256=K0kJYkjV7dASo1pl4VepU9r18gG3hDQm5WienL-Vncg,291
|
||||
groq/types/file_info_response.py,sha256=kuphFSI_4xgCPNm25nCptc0BBDeVEiBkaugT2g7zFcI,880
|
||||
groq/types/file_list_response.py,sha256=kk8lQLGVMkRxC2BzmcAByq4yCUB01zDDh2UqaTOb4mE,969
|
||||
groq/types/model.py,sha256=DMw8KwQx8B6S6sAI038D0xdzkmYdY5-r0oMhCUG4l6w,532
|
||||
groq/types/model_deleted.py,sha256=ntKUfq9nnKB6esFmLBla1hYU29KjmFElr_i14IcWIUA,228
|
||||
groq/types/model_list_response.py,sha256=fUKK6I7am-Sx4cnC7nC3mHEhOKZXbkTRHLzxiApK3pA,329
|
||||
groq/types/shared/__init__.py,sha256=eoiCHGKeY1_YjOn41M8QxvIUI_M68Ltsr1d67g_Pr-I,288
|
||||
groq/types/shared/__pycache__/__init__.cpython-311.pyc,,
|
||||
groq/types/shared/__pycache__/error_object.cpython-311.pyc,,
|
||||
groq/types/shared/__pycache__/function_definition.cpython-311.pyc,,
|
||||
groq/types/shared/__pycache__/function_parameters.cpython-311.pyc,,
|
||||
groq/types/shared/error_object.py,sha256=G7SGPZ9Qw3gewTKbi3fK69eM6L2Ur0C2D57N8iEapJA,305
|
||||
groq/types/shared/function_definition.py,sha256=oMxY-W_pwcX6Inohy7Pax6GKSNTnhqbNSrW68nvT4fk,1012
|
||||
groq/types/shared/function_parameters.py,sha256=Dkc_pm98zCKyouQmYrl934cK8ZWX7heY_IIyunW8x7c,236
|
||||
groq/types/shared_params/__init__.py,sha256=Jaw3mmmUB3Ky7vL1fzsh-8kAJEbeYxcQ0JOy7p765Xo,235
|
||||
groq/types/shared_params/__pycache__/__init__.cpython-311.pyc,,
|
||||
groq/types/shared_params/__pycache__/function_definition.cpython-311.pyc,,
|
||||
groq/types/shared_params/__pycache__/function_parameters.cpython-311.pyc,,
|
||||
groq/types/shared_params/function_definition.py,sha256=2NFZiFLSY3XzCOMGimq6sPKLpOuSIVSuvMJTwDNiJAI,1026
|
||||
groq/types/shared_params/function_parameters.py,sha256=UvxKz_3b9b5ECwWr8RFrIH511htbU2JZsp9Z9BMkF-o,272
|
||||
@@ -0,0 +1,4 @@
|
||||
Wheel-Version: 1.0
|
||||
Generator: hatchling 1.26.3
|
||||
Root-Is-Purelib: true
|
||||
Tag: py3-none-any
|
||||
@@ -0,0 +1,201 @@
|
||||
Apache License
|
||||
Version 2.0, January 2004
|
||||
http://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
APPENDIX: How to apply the Apache License to your work.
|
||||
|
||||
To apply the Apache License to your work, attach the following
|
||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
||||
replaced with your own identifying information. (Don't include
|
||||
the brackets!) The text should be enclosed in the appropriate
|
||||
comment syntax for the file format. We also recommend that a
|
||||
file or class name and description of purpose be included on the
|
||||
same "printed page" as the copyright notice for easier
|
||||
identification within third-party archives.
|
||||
|
||||
Copyright 2025 Groq
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
Reference in New Issue
Block a user