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

prompt caching documentation items missing in java azure inference api #44187

Open
Plawn opened this issue Feb 13, 2025 · 1 comment
Open

prompt caching documentation items missing in java azure inference api #44187

Plawn opened this issue Feb 13, 2025 · 1 comment
Assignees
Labels
customer-reported Issues that are reported by GitHub users external to the Azure organization. OpenAI question The issue doesn't require a change to the product in order to be resolved. Most issues start as that

Comments

@Plawn
Copy link

Plawn commented Feb 13, 2025

Type of issue

Typo

Description

On the https://learn.microsoft.com/en-us/azure/ai-services/openai/how-to/prompt-caching

in the result example:

{
  "created": 1729227448,
  "model": "o1-preview-2024-09-12",
  "object": "chat.completion",
  "service_tier": null,
  "system_fingerprint": "fp_50cdd5dc04",
  "usage": {
    "completion_tokens": 1518,
    "prompt_tokens": 1566,
    "total_tokens": 3084,
    "completion_tokens_details": {
      "audio_tokens": null,
      "reasoning_tokens": 576
    },
    "prompt_tokens_details": {
      "audio_tokens": null,
      "cached_tokens": 1408
    }
  }
}

We have the key cached_tokens which is not present in the java azure inference sdk

Can you add it in the sdk ?

Page URL

https://learn.microsoft.com/en-us/java/api/overview/azure/ai-inference-readme?view=azure-java-preview

Content source URL

https://github.com/Azure/azure-docs-sdk-java/blob/master/docs-ref-services/preview/ai-inference-readme.md

Document Version Independent Id

c69d7a40-f774-f7ac-9f05-7ca51551f35e

Article author

@azure-sdk

Metadata

  • ID: 45c57ccc-a843-5f28-dc24-64cb9048778f
  • PlatformId: cf3cb4f7-dc21-fce0-4485-8f9d7237b3a2
  • Service: ai
@github-actions github-actions bot added customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Feb 13, 2025
@github-actions github-actions bot removed the needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. label Feb 13, 2025
@joshfree
Copy link
Member

Thanks for filing this issue, @Plawn.

/cc @jpalvarezl

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
customer-reported Issues that are reported by GitHub users external to the Azure organization. OpenAI question The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Projects
None yet
Development

No branches or pull requests

3 participants