Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Adding Documentation for OpenAI client #134

Merged
merged 36 commits into from
Sep 19, 2024

Conversation

KavithaSiva
Copy link
Contributor

@KavithaSiva KavithaSiva commented Sep 16, 2024

Context

AI/gen-ai-hub-sdk-js-backlog#65

Definition of Done

  • [ ] Code is tested (Unit, E2E)
  • [ ] Error handling created / updated & covered by the tests above
  • Documentation updated
  • [ ] (Optional) Aligned changes with the Java SDK
  • [ ] (Optional) Release notes updated

@KavithaSiva KavithaSiva marked this pull request as draft September 16, 2024 12:04
packages/foundation-models/README.md Outdated Show resolved Hide resolved
packages/foundation-models/README.md Outdated Show resolved Hide resolved
packages/foundation-models/README.md Outdated Show resolved Hide resolved
packages/foundation-models/README.md Show resolved Hide resolved
packages/foundation-models/README.md Outdated Show resolved Hide resolved
Copy link
Contributor

@marikaner marikaner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚨 The style guide police is on its way (I am the police) ;)

I think it would be nice if we were to explain the concept of a deployment somewhere in a few words (or at least link to it).

I couldn't find anything on a resource group, which can also be passed. For me that would be fine for now as this should not be widely used anyways.

README.md Outdated Show resolved Hide resolved
packages/foundation-models/README.md Outdated Show resolved Hide resolved
packages/foundation-models/README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
packages/foundation-models/README.md Outdated Show resolved Hide resolved
packages/foundation-models/README.md Show resolved Hide resolved
const responseContent = response.getContent();
```

It is also possible to create a chat client by passing a `deploymentId` instead of a `modelName`.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[req] Please try to avoid passive voice as much as possible.
[req] Please also recheck our docs style guide => instead of passing a deploymentId either use "passing the deploymentId parameter" or "passing a deployment ID"
[pp] I would explain it a little more in depth, why would you ever do that? Consider adding a subsection:

Suggested change
It is also possible to create a chat client by passing a `deploymentId` instead of a `modelName`.
#### Obtaining a deployment ID on your own
In case you want to obtain the ID of your deployment on your own you can pass it instead of a model name.
EXAMPLE

=> as this is true for all clients this could be in some shared documentation for all of them.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have repeated this subsection for both clients as I don't have a shared documentation for all clients yet.
I will create a follow-up to create this shared documentation.
As a result, some information could be repeated for both clients for now.

packages/foundation-models/README.md Outdated Show resolved Hide resolved
packages/foundation-models/README.md Outdated Show resolved Hide resolved
packages/foundation-models/README.md Outdated Show resolved Hide resolved
packages/foundation-models/README.md Outdated Show resolved Hide resolved
packages/foundation-models/README.md Outdated Show resolved Hide resolved
packages/foundation-models/README.md Outdated Show resolved Hide resolved
packages/foundation-models/README.md Outdated Show resolved Hide resolved
packages/foundation-models/README.md Outdated Show resolved Hide resolved
packages/foundation-models/README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
packages/foundation-models/README.md Outdated Show resolved Hide resolved
packages/foundation-models/README.md Outdated Show resolved Hide resolved
packages/foundation-models/README.md Outdated Show resolved Hide resolved
packages/foundation-models/README.md Outdated Show resolved Hide resolved
Copy link
Contributor

@ZhongpinWang ZhongpinWang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some super minor suggestions.

I see many times that the word also was used. I get it as there are so many features in our SDK and we tend to say also. 😆

Also, I used LLM to correct the sentences. I would say maybe we can feed LLM with our styleguide and let it correct documentation automatically in the future. Robot style guide police 🤖 . @marikaner

packages/foundation-models/README.md Outdated Show resolved Hide resolved
packages/foundation-models/README.md Outdated Show resolved Hide resolved
packages/foundation-models/README.md Outdated Show resolved Hide resolved
packages/foundation-models/README.md Outdated Show resolved Hide resolved
packages/foundation-models/README.md Outdated Show resolved Hide resolved
packages/foundation-models/README.md Outdated Show resolved Hide resolved
packages/foundation-models/README.md Outdated Show resolved Hide resolved
packages/foundation-models/README.md Outdated Show resolved Hide resolved
packages/foundation-models/README.md Outdated Show resolved Hide resolved
Copy link
Contributor

@ZhongpinWang ZhongpinWang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for your effort!

@KavithaSiva KavithaSiva dismissed marikaner’s stale review September 19, 2024 12:01

The PR was approved by 2 other reviewers.

@KavithaSiva KavithaSiva merged commit 1f7c639 into main Sep 19, 2024
9 checks passed
@KavithaSiva KavithaSiva deleted the documentation-open-ai-client branch September 19, 2024 12:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants