Skip to content

Commit

Permalink
Rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
kaylareopelle committed Feb 13, 2024
1 parent 0359ae1 commit d69d404
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ module OpenAI
INSTRUMENTATION_NAME = NewRelic::Agent.base_name(name)
EMBEDDINGS_PATH = '/embeddings'
CHAT_COMPLETIONS_PATH = '/chat/completions'
EMBEDDINGS_SEGMENT_NAME = "Llm/embedding/OpenAI/embeddings"
CHAT_COMPLETIONS_SEGMENT_NAME = "Llm/completion/OpenAI/chat"
EMBEDDINGS_SEGMENT_NAME = 'Llm/embedding/OpenAI/embeddings'
CHAT_COMPLETIONS_SEGMENT_NAME = 'Llm/completion/OpenAI/chat'

def json_post_with_new_relic(path:, parameters:)
return yield unless path == EMBEDDINGS_PATH || path == CHAT_COMPLETIONS_PATH
Expand Down

0 comments on commit d69d404

Please sign in to comment.