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

Capture Whisper usage #63

Open
jpanay-TNM opened this issue Jan 8, 2024 · 0 comments
Open

Capture Whisper usage #63

jpanay-TNM opened this issue Jan 8, 2024 · 0 comments
Labels
enhancement Feature Improvements

Comments

@jpanay-TNM
Copy link

Summary

Pretty much the title, lol. Would be nice to be able to see OpenAI usage for the whisper-1 model in New Relic. If this is already a feature then maybe it is just a bug on my end because it seems to be capturing calls for the gpt-3.5-turbo and gpt-4 models but not whisper-1. Sample code below.

Desired Behavior

Include the same functionality for whisper that we have for the gpt models.

Additional context

import openai
from nr_openai_observability import monitor

openai.api_key = "NUNYA_BEEZWAX"
monitor.initialization(application_name="feature-request-example", license_key="DONT_HACK_ME_PLS")

# Model: gpt-4 (Captured by New Relic)
response_chat_completion = openai.ChatCompletion.create(
    model="gpt-4",
    messages=[{"role": "user", "content": "What is Observability?"}],
    max_tokens=100,
    temperature=0
)
print(response_chat_completion)

# Model: whisper-1 (Not captured by New Relic)
audio_file = open("./testing-clip.mp3", "rb")
response_transcribe = openai.Audio.transcribe("whisper-1", audio_file)
print(response_transcribe)
@jpanay-TNM jpanay-TNM added the enhancement Feature Improvements label Jan 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Feature Improvements
Projects
None yet
Development

No branches or pull requests

1 participant