microsoft / microsoft/codamosa
Update call pattern to OpenAi to use new protocol
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 165
- Forks
- 35
- Avg merge
- 16d 4h
- Merged PRs (30d)
- 1
Description
The _openai_api_request method in pynguin/languagemodels/model.py uses the new protocol to interact with OpenAi compatible models (documentation linked here).
The _openai_api_legacy_request method uses the old protocol that was previously used by Codamosa to interact with the OpenAi model. Need to validate that the new method works with the OpenAi model (hosted by OpenAI server) and remove the _openai_api_legacy_request if the new method works successfully.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in pynguin/languagemodels/model.py by comparing _openai_api_request with _openai_api_legacy_request. Exercise the new request method against an OpenAI-hosted model using the linked API documentation, then confirm the legacy path is no longer needed before removing it. Done means the new protocol works successfully with OpenAI.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- ai, api
- Issue type
- Refactor
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100