Skip to content

Commit c20a165

Browse files
mkopcinsMateusz Kopciński
andauthored
docs:fixed missing coma in docs (#394)
## Description <!-- Provide a concise and descriptive summary of the changes implemented in this PR. --> ### Type of change - [ ] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] Documentation update (improves or adds clarity to existing documentation) ### Tested on - [ ] iOS - [ ] Android ### Testing instructions <!-- Provide step-by-step instructions on how to test your changes. Include setup details if necessary. --> ### Screenshots <!-- Add screenshots here, if applicable --> ### Related issues <!-- Link related issues here using #issue-number --> ### Checklist - [ ] I have performed a self-review of my code - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] I have updated the documentation accordingly - [ ] My changes generate no new warnings ### Additional notes <!-- Include any additional information, assumptions, or context that reviewers might need to understand this PR. --> --------- Co-authored-by: Mateusz Kopciński <mateusz.kopcinski@swmansnion.com>
1 parent 31fd91e commit c20a165

3 files changed

Lines changed: 19 additions & 7 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ function MyComponent() {
8080
```tsx
8181
const handleGenerate = async () => {
8282
const chat = [
83-
{ role: 'system', content: 'You are a helpful assistant' }
83+
{ role: 'system', content: 'You are a helpful assistant' },
8484
{ role: 'user', content: 'What is the meaning of life?' }
8585
];
8686

docs/docs/natural-language-processing/useLLM.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ const llm = useLLM({
173173

174174
const handleGenerate = async () => {
175175
const chat = [
176-
{ role: 'system' content: 'You are a helpful assistant' },
176+
{ role: 'system', content: 'You are a helpful assistant' },
177177
{ role: 'user', content: 'Hi!' },
178178
{ role: 'assistant', content: 'Hi!, how can I help you?'},
179179
{ role: 'user', content: 'What is the meaning of life?' },
@@ -230,8 +230,14 @@ const llm = useLLM({
230230

231231
const handleGenerate = async () => {
232232
const chat = [
233-
{ role: 'system' content: `You are a helpful assistant. Current time and date: ${new Date().toString()}` }
234-
{ role: 'user', content: `Hi, what's the weather like in Cracow right now?` }
233+
{
234+
role: 'system',
235+
content: `You are a helpful assistant. Current time and date: ${new Date().toString()}`,
236+
},
237+
{
238+
role: 'user',
239+
content: `Hi, what's the weather like in Cracow right now?`,
240+
},
235241
];
236242

237243
// Chat completion

docs/versioned_docs/version-0.4.x/natural-language-processing/useLLM.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ const llm = useLLM({
173173

174174
const handleGenerate = async () => {
175175
const chat = [
176-
{ role: 'system' content: 'You are a helpful assistant' },
176+
{ role: 'system', content: 'You are a helpful assistant' },
177177
{ role: 'user', content: 'Hi!' },
178178
{ role: 'assistant', content: 'Hi!, how can I help you?'},
179179
{ role: 'user', content: 'What is the meaning of life?' },
@@ -230,8 +230,14 @@ const llm = useLLM({
230230

231231
const handleGenerate = async () => {
232232
const chat = [
233-
{ role: 'system' content: `You are a helpful assistant. Current time and date: ${new Date().toString()}` }
234-
{ role: 'user', content: `Hi, what's the weather like in Cracow right now?` }
233+
{
234+
role: 'system',
235+
content: `You are a helpful assistant. Current time and date: ${new Date().toString()}`,
236+
},
237+
{
238+
role: 'user',
239+
content: `Hi, what's the weather like in Cracow right now?`,
240+
},
235241
];
236242

237243
// Chat completion

0 commit comments

Comments
 (0)