openai / openai/codex-action

Expose costs of api call

Open
#65 2 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
1.2k
Forks
170
PR merge metrics
No merged PRs in 30d

Description

It would be useful using this as a github action to return costs as you can with the openai sdk/ api.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the GitHub Action entry point that invokes the OpenAI API and identify how results are currently returned. Clarify which cost data the SDK/API exposes and what action output should contain it. Done means callers can retrieve the API call cost from the action, with tests covering the new output.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions, typescript
Domain
api, ci-cd
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.