MCPcopy Create free account
hub / github.com/AgentOps-AI/agentops / make_openai_call

Function make_openai_call

tests/core_manual_tests/benchmark.py:10–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8
9
10def make_openai_call():
11 client = openai.Client()
12 return client.chat.completions.create(
13 model="gpt-3.5-turbo",
14 messages=[
15 {"role": "system", "content": "You are a chatbot."},
16 {"role": "user", "content": "What are you talking about?"},
17 ],
18 )
19
20
21# Initialize profiler

Callers 1

benchmark.pyFile · 0.85

Calls 1

createMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…