Skip to content

Commit

Permalink
fix: Changes from lint
Browse files Browse the repository at this point in the history
  • Loading branch information
cloud-sdk-js committed Oct 2, 2024
1 parent 74a17a5 commit 74dc3ce
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 15 deletions.
18 changes: 8 additions & 10 deletions packages/foundation-models/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,16 +71,14 @@ The client sends request with Azure OpenAI API version `2024-06-01`.
import { AzureOpenAiChatClient } from '@sap-ai-sdk/foundation-models';

const chatClient = new AzureOpenAiChatClient('gpt-4o');
const response = await chatClient.run(
{
messages: [
{
role: 'user',
content: 'Where is the deepest place on earth located'
}
]
}
);
const response = await chatClient.run({
messages: [
{
role: 'user',
content: 'Where is the deepest place on earth located'
}
]
});

const responseContent = response.getContent();
```
Expand Down
8 changes: 3 additions & 5 deletions packages/orchestration/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,9 @@ const orchestrationClient = new OrchestrationClient({
}
});

const response = await orchestrationClient.chatCompletion(
{
inputParams: { country: 'France' }
}
);
const response = await orchestrationClient.chatCompletion({
inputParams: { country: 'France' }
});

const responseContent = response.getContent();
```
Expand Down

0 comments on commit 74dc3ce

Please sign in to comment.