Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jjtang1985 authored Oct 18, 2024
1 parent 65c50fa commit 919f32c
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions packages/orchestration/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,25 @@ console.log(
);
```

> [!Tip]

Check warning on line 128 in packages/orchestration/README.md

View workflow job for this annotation

GitHub Actions / grammar-check

[vale] reported by reviewdog 🐶 [SAP.Spacing] '!T' should have one space. Raw Output: {"message": "[SAP.Spacing] '!T' should have one space.", "location": {"path": "packages/orchestration/README.md", "range": {"start": {"line": 128, "column": 4}}}, "severity": "WARNING"}
> #### Harmonized API
> You can switch to a different model, even from another vendor, by leveraging the harmonized API of the orchestration service.
> Here’s an example where only one line of code is changed..
> ```ts
> const orchestrationClient = new OrchestrationClient({
> llm: {
> // only change the model name here
> model_name: 'gemini-1.5-flash',
> model_params: { max_tokens: 50, temperature: 0.1 }
> },
> templating: {
> template: [
> { role: 'user', content: 'What is the capital of {{?country}}?' }
> ]
> }
> });
> ```
#### Passing a Message History
It is possible to provide a history of a conversation to the model.
Expand Down

0 comments on commit 919f32c

Please sign in to comment.