MCPcopy Index your code
hub / github.com/AgentOps-AI/agentops / completion

Method completion

app/e2e/sdk-api/src/agents/basic_agent.py:24–33  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

22 self.async_client = AsyncOpenAI(api_key=os.environ.get("OPENAI_API_KEY"))
23
24 def completion(self):
25 return self.client.chat.completions.create(
26 messages=[
27 {
28 "role": "user",
29 "content": "Say this is a test",
30 }
31 ],
32 model="gpt-3.5-turbo",
33 )
34
35 async def stream_completion(self):
36 return self.client.chat.completions.create(

Callers

nothing calls this directly

Calls 1

createMethod · 0.45

Tested by

no test coverage detected