Skip to content

chore: add property frequencyPenalty in type defintions#394

Merged
qiaodev merged 3 commits into
googleapis:mainfrom
bearjaws:main
Aug 21, 2024
Merged

chore: add property frequencyPenalty in type defintions#394
qiaodev merged 3 commits into
googleapis:mainfrom
bearjaws:main

Conversation

@bearjaws

@bearjaws bearjaws commented Aug 5, 2024

Copy link
Copy Markdown
Contributor

Hey all, was working with gemini-flash-1.5 and noticed that frequencyPenalty was not documented in typescript. Taken from these docs: https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/inference

I validated that it gets parsed into formulateRequest in generative_models.js when calling generateContent.

One item I was not sure about was how much input validate we want to add?

I see we are validating topK in validateGenerationConfig but that is the only thing, all other properties are missing and will error out on the API side.

Let me know if you want me to add checks there or change anything else. I have signed the Contributor License Agreement

Thank you!

@product-auto-label product-auto-label Bot added the api: aiplatform Issues related to the googleapis/nodejs-agentplatform API. label Aug 5, 2024
@qiaodev qiaodev added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Aug 21, 2024
@qiaodev qiaodev changed the title fix: missing property frequencyPenalty in type defintions chore: missing property frequencyPenalty in type defintions Aug 21, 2024
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Aug 21, 2024
@qiaodev qiaodev requested review from qiaodev and yyyu-google August 21, 2024 00:36
Comment thread src/types/content.ts
@yyyu-google yyyu-google added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Aug 21, 2024
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Aug 21, 2024
@qiaodev qiaodev merged commit 7557a83 into googleapis:main Aug 21, 2024
@qiaodev qiaodev changed the title chore: missing property frequencyPenalty in type defintions chore: add property frequencyPenalty in type defintions Aug 21, 2024
@qiaodev qiaodev added the pr:community PR from open source community label Aug 21, 2024
This was referenced May 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: aiplatform Issues related to the googleapis/nodejs-agentplatform API. pr:community PR from open source community

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants