mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-04 02:31:27 +00:00
test_otel_callback
This commit is contained in:
parent
dcc63c7d67
commit
2d618087bf
1 changed files with 5 additions and 7 deletions
|
|
@ -17,13 +17,11 @@ def test_otel_callback():
|
|||
litellm.set_verbose = True
|
||||
litellm.callbacks = [OpenTelemetry(OpenTelemetryConfig(exporter=exporter))]
|
||||
|
||||
asyncio.run(
|
||||
litellm.acompletion(
|
||||
model="gpt-3.5-turbo",
|
||||
messages=[{"role": "user", "content": "hi"}],
|
||||
temperature=0.1,
|
||||
user="OTEL_USER",
|
||||
)
|
||||
litellm.completion(
|
||||
model="gpt-3.5-turbo",
|
||||
messages=[{"role": "user", "content": "hi"}],
|
||||
temperature=0.1,
|
||||
user="OTEL_USER",
|
||||
)
|
||||
|
||||
time.sleep(4)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue