Skip to content

Commit bb9671b

Browse files
authored
[ai] Update example in README.md (#525)
## Summary Update example in README.md. It was using an outdated option, so this makes it up-to-date. ## How was it tested? Ran the code manually. ## Community Contribution License All community contributions in this pull request are licensed to the project maintainers under the terms of the [Apache 2 License](https://www.apache.org/licenses/LICENSE-2.0). By creating this pull request I represent that I have the right to license the contributions to the project maintainers under the Apache 2 License as stated in the [Community Contribution License](https://github.com/jetify-com/opensource/blob/main/CONTRIBUTING.md#community-contribution-license).
1 parent 6e7a620 commit bb9671b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

aisdk/ai/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,13 +98,13 @@ func main() {
9898
context.Background(),
9999
"Explain quantum computing in simple terms",
100100
ai.WithModel(model),
101-
ai.WithMaxTokens(200),
101+
ai.WithMaxOutputTokens(200),
102102
)
103103
if err != nil {
104104
log.Fatal(err)
105105
}
106-
107106
// Do whatever you want with the response...
107+
fmt.Println(response)
108108
}
109109
```
110110

0 commit comments

Comments
 (0)