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

fix: correct typo in prompt version endpoint name #246

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

chikingsley
Copy link

Fix typo in prompt version endpoint name

This PR fixes a typo in the API definition where createPromptVersion is spelled as createPromptVerison.

Changes

  • Fixed the endpoint name in .mock/definition/empathic-voice/prompts.yml from create-prompt-verison to create-prompt-version

Impact

This typo currently appears in the auto-generated TypeScript SDK, causing developers to use the misspelled method name. After this fix, the SDK will need to be regenerated to update all affected files:

  • src/api/resources/empathicVoice/resources/prompts/client/Client.ts
  • src/serialization/resources/empathicVoice/resources/prompts/client/createPromptVerison.ts
  • src/serialization/resources/empathicVoice/resources/prompts/client/index.ts

Testing

After regenerating the SDK, developers will be able to use the correctly spelled method:

await client.empathicVoice.prompts.createPromptVersion({
  id: 'prompt-id',
  text: 'prompt text'
});

Instead of having to use the misspelled version:

await client.empathicVoice.prompts.createPromptVerison({
  id: 'prompt-id',
  text: 'prompt text'
});

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.

1 participant