From de89a3d2d90f0a3898f83f443ae6cea4ef0c7c59 Mon Sep 17 00:00:00 2001 From: stainless-bot Date: Sun, 12 May 2024 20:56:17 +0000 Subject: [PATCH] feat(api): update via SDK Studio --- README.md | 14 +++++++------- SECURITY.md | 27 +++++++++++++++++++++++++++ 2 files changed, 34 insertions(+), 7 deletions(-) create mode 100644 SECURITY.md diff --git a/README.md b/README.md index 9d0ebbf..ed3e5b8 100644 --- a/README.md +++ b/README.md @@ -49,7 +49,7 @@ const groq = new Groq(); async function main() { const params: Groq.Chat.CompletionCreateParams = { messages: [ - { role: 'system', content: 'You are a helpful assisstant.' }, + { role: 'system', content: 'You are a helpful assistant.' }, { role: 'user', content: 'Explain the importance of low latency LLMs' }, ], model: 'mixtral-8x7b-32768', @@ -74,7 +74,7 @@ async function main() { const chatCompletion = await groq.chat.completions .create({ messages: [ - { role: 'system', content: 'You are a helpful assisstant.' }, + { role: 'system', content: 'You are a helpful assistant.' }, { role: 'user', content: 'Explain the importance of low latency LLMs' }, ], model: 'mixtral-8x7b-32768', @@ -122,7 +122,7 @@ const groq = new Groq({ }); // Or, configure per-request: -await groq.chat.completions.create({ messages: [{ role: 'system', content: 'You are a helpful assisstant.' }, { role: 'user', content: 'Explain the importance of low latency LLMs' }], model: 'mixtral-8x7b-32768' }, { +await groq.chat.completions.create({ messages: [{ role: 'system', content: 'You are a helpful assistant.' }, { role: 'user', content: 'Explain the importance of low latency LLMs' }], model: 'mixtral-8x7b-32768' }, { maxRetries: 5, }); ``` @@ -139,7 +139,7 @@ const groq = new Groq({ }); // Override per-request: -await groq.chat.completions.create({ messages: [{ role: 'system', content: 'You are a helpful assisstant.' }, { role: 'user', content: 'Explain the importance of low latency LLMs' }], model: 'mixtral-8x7b-32768' }, { +await groq.chat.completions.create({ messages: [{ role: 'system', content: 'You are a helpful assistant.' }, { role: 'user', content: 'Explain the importance of low latency LLMs' }], model: 'mixtral-8x7b-32768' }, { timeout: 5 * 1000, }); ``` @@ -163,7 +163,7 @@ const groq = new Groq(); const response = await groq.chat.completions .create({ messages: [ - { role: 'system', content: 'You are a helpful assisstant.' }, + { role: 'system', content: 'You are a helpful assistant.' }, { role: 'user', content: 'Explain the importance of low latency LLMs' }, ], model: 'mixtral-8x7b-32768', @@ -175,7 +175,7 @@ console.log(response.statusText); // access the underlying Response object const { data: chatCompletion, response: raw } = await groq.chat.completions .create({ messages: [ - { role: 'system', content: 'You are a helpful assisstant.' }, + { role: 'system', content: 'You are a helpful assistant.' }, { role: 'user', content: 'Explain the importance of low latency LLMs' }, ], model: 'mixtral-8x7b-32768', @@ -289,7 +289,7 @@ const groq = new Groq({ await groq.chat.completions.create( { messages: [ - { role: 'system', content: 'You are a helpful assisstant.' }, + { role: 'system', content: 'You are a helpful assistant.' }, { role: 'user', content: 'Explain the importance of low latency LLMs' }, ], model: 'mixtral-8x7b-32768', diff --git a/SECURITY.md b/SECURITY.md new file mode 100644 index 0000000..9550f35 --- /dev/null +++ b/SECURITY.md @@ -0,0 +1,27 @@ +# Security Policy + +## Reporting Security Issues + +This SDK is generated by [Stainless Software Inc](http://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 security@stainlessapi.com. + +## 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 support@groq.com for any questions or concerns regarding security of our services. + +--- + +Thank you for helping us keep the SDKs and systems they interact with secure.