Skip to content

Commit

Permalink
feat(api): update via SDK Studio (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed May 12, 2024
1 parent 5ca3b78 commit dc73eeb
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 9 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ try:
messages=[
{
"role": "system",
"content": "You are a helpful assisstant.",
"content": "You are a helpful assistant.",
},
{
"role": "user",
Expand Down Expand Up @@ -158,7 +158,7 @@ client.with_options(max_retries=5).chat.completions.create(
messages=[
{
"role": "system",
"content": "You are a helpful assisstant.",
"content": "You are a helpful assistant.",
},
{
"role": "user",
Expand Down Expand Up @@ -193,7 +193,7 @@ client.with_options(timeout=5.0).chat.completions.create(
messages=[
{
"role": "system",
"content": "You are a helpful assisstant.",
"content": "You are a helpful assistant.",
},
{
"role": "user",
Expand Down Expand Up @@ -243,7 +243,7 @@ client = Groq()
response = client.chat.completions.with_raw_response.create(
messages=[{
"role": "system",
"content": "You are a helpful assisstant.",
"content": "You are a helpful assistant.",
}, {
"role": "user",
"content": "Explain the importance of low latency LLMs",
Expand Down Expand Up @@ -271,7 +271,7 @@ with client.chat.completions.with_streaming_response.create(
messages=[
{
"role": "system",
"content": "You are a helpful assisstant.",
"content": "You are a helpful assistant.",
},
{
"role": "user",
Expand Down
27 changes: 27 additions & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Security Policy

## Reporting Security Issues

This SDK is generated by [Stainless Software Inc](http:https://stainlessapi.com). Stainless takes security seriously, and encourages you to report any security vulnerability promptly so that appropriate action can be taken.

To report a security issue, please contact the Stainless team at [email protected].

## Responsible Disclosure

We appreciate the efforts of security researchers and individuals who help us maintain the security of
SDKs we generate. If you believe you have found a security vulnerability, please adhere to responsible
disclosure practices by allowing us a reasonable amount of time to investigate and address the issue
before making any information public.

## Reporting Non-SDK Related Security Issues

If you encounter security issues that are not directly related to SDKs but pertain to the services
or products provided by Groq please follow the respective company's security reporting guidelines.

### Groq Terms and Policies

Please contact [email protected] for any questions or concerns regarding security of our services.

---

Thank you for helping us keep the SDKs and systems they interact with secure.
8 changes: 4 additions & 4 deletions tests/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,7 @@ def test_retrying_timeout_errors_doesnt_leak(self, respx_mock: MockRouter) -> No
messages=[
{
"role": "system",
"content": "You are a helpful assisstant.",
"content": "You are a helpful assistant.",
},
{
"role": "user",
Expand Down Expand Up @@ -723,7 +723,7 @@ def test_retrying_status_errors_doesnt_leak(self, respx_mock: MockRouter) -> Non
messages=[
{
"role": "system",
"content": "You are a helpful assisstant.",
"content": "You are a helpful assistant.",
},
{
"role": "user",
Expand Down Expand Up @@ -1401,7 +1401,7 @@ async def test_retrying_timeout_errors_doesnt_leak(self, respx_mock: MockRouter)
messages=[
{
"role": "system",
"content": "You are a helpful assisstant.",
"content": "You are a helpful assistant.",
},
{
"role": "user",
Expand Down Expand Up @@ -1431,7 +1431,7 @@ async def test_retrying_status_errors_doesnt_leak(self, respx_mock: MockRouter)
messages=[
{
"role": "system",
"content": "You are a helpful assisstant.",
"content": "You are a helpful assistant.",
},
{
"role": "user",
Expand Down

0 comments on commit dc73eeb

Please sign in to comment.