Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add custom endpoint option for OpenAI-like APIs #7

Merged
merged 3 commits into from
Jan 9, 2025

Conversation

m7medVision
Copy link
Owner

@m7medVision m7medVision commented Jan 9, 2025

Fixes #5

Add support for custom endpoint for OpenAI-like APIs.

  • Config Interface: Add customEndpoint field to Config interface in src/config.ts.
  • getModels Function: Update getModels function in src/config.ts to support custom endpoints.
  • showConfigUI Function: Update showConfigUI function in src/config.ts to allow users to set a custom endpoint.
  • createOpenAI Function: Modify createOpenAI function in src/run.ts to use the custom endpoint if provided.
  • Documentation: Add documentation for custom endpoint option in README.md.

For more details, open the Copilot Workspace session.

Fixes #5

Add support for custom endpoint for OpenAI-like APIs.

* **Config Interface**: Add `customEndpoint` field to `Config` interface in `src/config.ts`.
* **getModels Function**: Update `getModels` function in `src/config.ts` to support custom endpoints.
* **showConfigUI Function**: Update `showConfigUI` function in `src/config.ts` to allow users to set a custom endpoint.
* **createOpenAI Function**: Modify `createOpenAI` function in `src/run.ts` to use the custom endpoint if provided.
* **Documentation**: Add documentation for custom endpoint option in `README.md`.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/m7medVision/lazycommit/issues/5?shareId=XXXX-XXXX-XXXX-XXXX).
@m7medVision m7medVision merged commit 80e7dae into main Jan 9, 2025
@m7medVision m7medVision deleted the add-custom-endpoint branch January 9, 2025 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Custom endpoint
1 participant