René's URL Explorer Experiment
Title: feat(forge-ai): OpenAI-compatible provider (OpenAI, OpenRouter, Ollama, LM Studio, vLLM) · Issue #87 · elcode-id/elcode-forge · GitHub
Open Graph Title: feat(forge-ai): OpenAI-compatible provider (OpenAI, OpenRouter, Ollama, LM Studio, vLLM) · Issue #87 · elcode-id/elcode-forge
X Title: feat(forge-ai): OpenAI-compatible provider (OpenAI, OpenRouter, Ollama, LM Studio, vLLM) · Issue #87 · elcode-id/elcode-forge
Description: 1. Context & Objective Implement OpenAiCompatProvider in crates/forge-ai, supporting OpenAI, OpenRouter, Ollama (/v1), LM Studio, vLLM, and llama.cpp server over synchronous HTTP (ureq) with chat completions, SSE streaming, embeddings, a...
Open Graph Description: 1. Context & Objective Implement OpenAiCompatProvider in crates/forge-ai, supporting OpenAI, OpenRouter, Ollama (/v1), LM Studio, vLLM, and llama.cpp server over synchronous HTTP (ureq) with chat c...
X Description: 1. Context & Objective Implement OpenAiCompatProvider in crates/forge-ai, supporting OpenAI, OpenRouter, Ollama (/v1), LM Studio, vLLM, and llama.cpp server over synchronous HTTP (ureq) with ch...
Opengraph URL: https://github.com/elcode-id/elcode-forge/issues/87
X: @github
direct link
Domain: github.com
IPv4 address: 140.82.114.4
Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"feat(forge-ai): OpenAI-compatible provider (OpenAI, OpenRouter, Ollama, LM Studio, vLLM)","articleBody":"## 1. Context & Objective\nImplement `OpenAiCompatProvider` in `crates/forge-ai`, supporting OpenAI, OpenRouter, Ollama (`/v1`), LM Studio, vLLM, and `llama.cpp` server over synchronous HTTP (`ureq`) with chat completions, SSE streaming, embeddings, and JSON-schema structured output (PRD §19).\n\n- **Parent Epic:** #82\n- **GitFlow Branch:** `feat/forge-087-ai-openai-compatible`\n- **Execution Wave:** `wave-11`\n- **DAG Dependencies:** Depends on #86\n- **Estimated Size:** ~340 LOC (`\u003c 400 LOC`)\n\n## 2. Target Files\n- `crates/forge-ai/src/providers/mod.rs` *(NEW)*\n- `crates/forge-ai/src/providers/http.rs` *(NEW: bounded response reader, status mapping, header redaction)*\n- `crates/forge-ai/src/providers/openai_compat.rs` *(NEW: `OpenAiCompatProvider`)*\n- `crates/forge-ai/src/lib.rs` *(MODIFY: export `providers`)*\n\n## 3. Public Contract\n```rust\npub struct OpenAiCompatProvider { /* ... */ }\nimpl OpenAiCompatProvider {\n pub fn new(\n base_url: String,\n api_key: Option\u003cString>,\n model: String,\n timeout_secs: u64,\n ) -> Result\u003cSelf, ForgeError>;\n}\nimpl AiProvider for OpenAiCompatProvider { /* ... */ }\n```\n- `generate` -> `POST {base_url}/chat/completions`\n- `stream` -> `POST {base_url}/chat/completions` with `stream: true`, parsing `data: ...` SSE lines until `[DONE]`\n- `embed` -> `POST {base_url}/embeddings`\n- `structured_output` -> `response_format: { type: json_schema }` with JSON parsing and required-keys validation fallback\n\n## 4. Security & Privacy Invariants\n- `api_key` is optional so local providers (Ollama, LM Studio) work without credentials.\n- HTTP error mapping to `ForgeError::Ai` MUST never echo authorization headers or raw API keys.\n- Response body read is bounded (max 4 MiB) to prevent memory exhaustion from rogue endpoints.\n\n## 5. Definition of Done & Verification (Tier 1)\n- Local `tiny_http` mock server tests (`127.0.0.1:0`, zero internet access) covering `generate`, SSE `stream`, `embed`, `structured_output`, HTTP 401/429/500 error handling, and response size cap.\n- **Selective Verification Gate (Tier 1):**\n 1. `cargo fmt --package forge-ai -- --check`\n 2. `cargo clippy --package forge-ai --all-targets -- -D warnings`\n 3. `cargo test --package forge-ai`","author":{"url":"https://github.com/luksluki","@type":"Person","name":"luksluki"},"datePublished":"2026-10-19T14:21:22Z","url":"https://github.com/elcode-id/elcode-forge/issues/87"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:502b1f50-0753-0640-a2de-f586c50189d0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9752:1020DA:1551AF:1D19C3:6B059790 |
| html-safe-nonce | 33d91e8b1482a9f0a0f278a2b3c3d53f859db15701a0f7886cee43275130742a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NzUyOjEwMjBEQToxNTUxQUY6MUQxOUMzOjZCMDU5NzkwIiwidmlzaXRvcl9pZCI6IjQ5ODI2NTEyMDYwOTU5NjgxNDUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | fd24aaa1f4e48637bc40d5849558e71f913e32d8b575544763d2f09d8de3dcc9 |
| hovercard-subject-tag | issue:5925647068 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///voltron/issues_fragments/issue_layout |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/elcode-id/elcode-forge/87/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9caf97a59861ce0c280889091b42c4973556d05e7e2da80e878a684445e98a0e/elcode-id/elcode-forge/issues/87 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9caf97a59861ce0c280889091b42c4973556d05e7e2da80e878a684445e98a0e/elcode-id/elcode-forge/issues/87 |
| og:image:alt | 1. Context & Objective Implement OpenAiCompatProvider in crates/forge-ai, supporting OpenAI, OpenRouter, Ollama (/v1), LM Studio, vLLM, and llama.cpp server over synchronous HTTP (ureq) with chat c... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | luksluki |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3b72fd2385d76a50ce0fe937d50bb4a81434432c4fd47866074a26f6cd03623f |
| turbo-cache-control | no-preview |
| go-import | github.com/elcode-id/elcode-forge git https://github.com/elcode-id/elcode-forge.git |
| octolytics-dimension-user_id | 337957755 |
| octolytics-dimension-user_login | elcode-id |
| octolytics-dimension-repository_id | 1423983661 |
| octolytics-dimension-repository_nwo | elcode-id/elcode-forge |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1423983661 |
| octolytics-dimension-repository_network_root_nwo | elcode-id/elcode-forge |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 58e2bd32336f3dcee343ec627a4d09c7c444e214 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Skip to content | https://github.com/elcode-id/elcode-forge/issues/87#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Felcode-id%2Felcode-forge%2Fissues%2F87 |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Felcode-id%2Felcode-forge%2Fissues%2F87 |
| Sign up | https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=elcode-id%2Felcode-forge |
| Reload | https://github.com/elcode-id/elcode-forge/issues/87 |
| Reload | https://github.com/elcode-id/elcode-forge/issues/87 |
| Reload | https://github.com/elcode-id/elcode-forge/issues/87 |
| elcode-id | https://github.com/elcode-id |
| elcode-forge | https://github.com/elcode-id/elcode-forge |
| Code | https://github.com/elcode-id/elcode-forge |
| Issues | https://github.com/elcode-id/elcode-forge/issues |
| Pull requests | https://github.com/elcode-id/elcode-forge/pulls |
| Actions | https://github.com/elcode-id/elcode-forge/actions |
| Projects | https://github.com/elcode-id/elcode-forge/projects |
| Security and quality | https://github.com/elcode-id/elcode-forge/security |
| Insights | https://github.com/elcode-id/elcode-forge/insights |
| https://github.com/elcode-id/elcode-forge |
| New issue | https://github.com/login?return_to=https://github.com/elcode-id/elcode-forge/issues/87 |
| New issue | https://github.com/login?return_to=https://github.com/elcode-id/elcode-forge/issues/87 |
| feat(forge-ai): OpenAI-compatible provider (OpenAI, OpenRouter, Ollama, LM Studio, vLLM) | https://github.com/elcode-id/elcode-forge/issues/87#top |
| forge-ai | https://github.com/elcode-id/elcode-forge/issues?q=state%3Aopen%20label%3A%22forge-ai%22 |
| phase-4 | https://github.com/elcode-id/elcode-forge/issues?q=state%3Aopen%20label%3A%22phase-4%22 |
| wave-11 | https://github.com/elcode-id/elcode-forge/issues?q=state%3Aopen%20label%3A%22wave-11%22 |
| https://github.com/luksluki |
| luksluki | https://github.com/luksluki |
| on Oct 19, 2026 | https://github.com/elcode-id/elcode-forge/issues/87#issue-5925647068 |
| [EPIC] Phase 4A: AI Foundation & Provider Abstraction (forge-core + forge-ai) #82 | https://github.com/elcode-id/elcode-forge/issues/82 |
| feat(forge-ai): scaffold forge-ai crate with AiProvider trait, request types, and MockProvider #86 | https://github.com/elcode-id/elcode-forge/issues/86 |
| luksluki | https://github.com/luksluki |
| phase-4 | https://github.com/elcode-id/elcode-forge/issues?q=state%3Aopen%20label%3A%22phase-4%22 |
| forge-ai | https://github.com/elcode-id/elcode-forge/issues?q=state%3Aopen%20label%3A%22forge-ai%22 |
| wave-11 | https://github.com/elcode-id/elcode-forge/issues?q=state%3Aopen%20label%3A%22wave-11%22 |
| on Oct 19, 2026 | https://github.com/elcode-id/elcode-forge/issues/87#event-33653028038 |
| luksluki | https://github.com/luksluki |
| on Oct 19, 2026 | https://github.com/elcode-id/elcode-forge/issues/87#event-33655921324 |
| feat(forge-ai): OpenAI-compatible provider (OpenAI, OpenRouter, Ollam… | https://github.com/elcode-id/elcode-forge/commit/04b54c3816c7c8a07f38a3cf0ff2a5acf996e4b9 |
| https://docs.github.com/articles/closing-issues-via-commit-messages |
| 04b54c3 | https://github.com/elcode-id/elcode-forge/commit/04b54c3816c7c8a07f38a3cf0ff2a5acf996e4b9 |
| https://github.com/luksluki |
| luksluki | https://github.com/luksluki |
| on Oct 19, 2026 | https://github.com/elcode-id/elcode-forge/issues/87#issuecomment-6271070242 |
| #97 | https://github.com/elcode-id/elcode-forge/pull/97 |
| #87 | https://github.com/elcode-id/elcode-forge/issues/87 |
| luksluki | https://github.com/luksluki |
| completed | https://github.com/elcode-id/elcode-forge/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted |
| on Oct 19, 2026 | https://github.com/elcode-id/elcode-forge/issues/87#event-33659897969 |
| Sign up for free | https://github.com/signup?return_to=https://github.com/elcode-id/elcode-forge/issues/87 |
| Sign in to comment | https://github.com/login?return_to=https://github.com/elcode-id/elcode-forge/issues/87 |
| forge-ai | https://github.com/elcode-id/elcode-forge/issues?q=state%3Aopen%20label%3A%22forge-ai%22 |
| phase-4 | https://github.com/elcode-id/elcode-forge/issues?q=state%3Aopen%20label%3A%22phase-4%22 |
| wave-11 | https://github.com/elcode-id/elcode-forge/issues?q=state%3Aopen%20label%3A%22wave-11%22 |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |
Response headers:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width
URLs of crawlers that visited me.