MagnivOrg / prompt-layer-library

🍰 PromptLayer - Maintain a log of your prompts and OpenAI API requests. Track, debug, and replay old completions.
https://www.promptlayer.com
Apache License 2.0
502 stars 46 forks source link

Feature Request: Support OpenAI's assistants API #134

Open Tcintra opened 5 months ago

Tcintra commented 5 months ago

Hi, not sure if I'm missing something but it seems like PromptLayer doesn't yet support calls to openai.beta.threads.runs.stream(). For example, it would be great to be able to call and tag the following (Typescript):

openai.beta.threads.runs.stream(threadId, {
  assistant_id: assistantId,
  // @ts-ignore
  pl_tags: [...],
  return_pl_id: true,
});

Is there a way to do this with the current Javascript library? Thanks!