[PR #76] [MERGED] Proxy support added via global agent #232

Closed
opened 2026-02-15 19:16:49 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/run-llama/create-llama/pull/76
Author: @mohdamir
Created: 5/8/2024
Status: Merged
Merged: 5/22/2024
Merged by: @marcusschiesser

Base: mainHead: feature/proxy-support


📝 Commits (8)

  • e19b768 Proxy support added via global agent
  • a13752c Update .changeset/tame-crews-trade.md
  • 6c36ae8 PR feedback incorported
  • c17f466 Update .changeset/tame-crews-trade.md
  • b7e51dc Merge branch 'main' into feature/proxy-support
  • 87c376b Formatted code as per the guidelines
  • 98dcd1e Merge branch 'run-llama:main' into feature/proxy-support
  • 67919ea Merge branch 'run-llama:main' into feature/proxy-support

📊 Changes

7 files changed (+301 additions, -146 deletions)

View changed files

.changeset/tame-crews-trade.md (+5 -0)
helpers/proxy.ts (+10 -0)
📝 index.ts (+4 -0)
📝 package.json (+2 -0)
📝 pnpm-lock.yaml (+273 -145)
📝 tsconfig.json (+2 -1)
types/global-agent.d.ts (+5 -0)

📄 Description

Problem: If user is on enterprise network and working behind proxy, create-llama is not able to connect to external servers.

Solution: Global Agent is used which will apply the proxy after reading them from evn. If proxy is not set it will be ignored. User can set the proxy URL as follows before running the create-llama tool.

Bash
export GLOBAL_AGENT_HTTP_PROXY=http://localhost:8080 (replace by actual proxy URL)
export GLOBAL_AGENT_HTTPS_PROXY=https://localhost:8080 (replace by actual proxy URL)

Cmd
set GLOBAL_AGENT_HTTP_PROXY=http://localhost:8080 (replace by actual proxy URL)
set GLOBAL_AGENT_HTTPS_PROXY=https://localhost:8080 (replace by actual proxy URL)

Summary by CodeRabbit

  • New Features

    • Added proxy support for network calls, allowing users to set a proxy URL for operations.
  • Dependencies

    • Updated dependencies to include global-agent and pnpm.
    • Added type definitions for global-agent.
  • Configuration

    • Expanded TypeScript configuration to include additional type roots.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/run-llama/create-llama/pull/76 **Author:** [@mohdamir](https://github.com/mohdamir) **Created:** 5/8/2024 **Status:** ✅ Merged **Merged:** 5/22/2024 **Merged by:** [@marcusschiesser](https://github.com/marcusschiesser) **Base:** `main` ← **Head:** `feature/proxy-support` --- ### 📝 Commits (8) - [`e19b768`](https://github.com/run-llama/create-llama/commit/e19b768a5d7f74714bf4120aa76490a198e9d18d) Proxy support added via global agent - [`a13752c`](https://github.com/run-llama/create-llama/commit/a13752c8c610359cc657055bed65b1ff9b6e1d06) Update .changeset/tame-crews-trade.md - [`6c36ae8`](https://github.com/run-llama/create-llama/commit/6c36ae830f24ac1f2ea7bc1a43636efb73ee57e4) PR feedback incorported - [`c17f466`](https://github.com/run-llama/create-llama/commit/c17f466750192726412a7a9490594e711d3fefc8) Update .changeset/tame-crews-trade.md - [`b7e51dc`](https://github.com/run-llama/create-llama/commit/b7e51dca9bc4146843e48545e4a76446704a83c2) Merge branch 'main' into feature/proxy-support - [`87c376b`](https://github.com/run-llama/create-llama/commit/87c376be4d9cdf60bc348f8668d6721b02234a4c) Formatted code as per the guidelines - [`98dcd1e`](https://github.com/run-llama/create-llama/commit/98dcd1ee48a8804ad6ea621c2242cc19fcde80c5) Merge branch 'run-llama:main' into feature/proxy-support - [`67919ea`](https://github.com/run-llama/create-llama/commit/67919eafdf13e81c9b0485c156feb82bb9a0b536) Merge branch 'run-llama:main' into feature/proxy-support ### 📊 Changes **7 files changed** (+301 additions, -146 deletions) <details> <summary>View changed files</summary> ➕ `.changeset/tame-crews-trade.md` (+5 -0) ➕ `helpers/proxy.ts` (+10 -0) 📝 `index.ts` (+4 -0) 📝 `package.json` (+2 -0) 📝 `pnpm-lock.yaml` (+273 -145) 📝 `tsconfig.json` (+2 -1) ➕ `types/global-agent.d.ts` (+5 -0) </details> ### 📄 Description Problem: If user is on enterprise network and working behind proxy, create-llama is not able to connect to external servers. Solution: Global Agent is used which will apply the proxy after reading them from evn. If proxy is not set it will be ignored. User can set the proxy URL as follows before running the create-llama tool. Bash export GLOBAL_AGENT_HTTP_PROXY=http://localhost:8080 (replace by actual proxy URL) export GLOBAL_AGENT_HTTPS_PROXY=https://localhost:8080 (replace by actual proxy URL) Cmd set GLOBAL_AGENT_HTTP_PROXY=http://localhost:8080 (replace by actual proxy URL) set GLOBAL_AGENT_HTTPS_PROXY=https://localhost:8080 (replace by actual proxy URL) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Added proxy support for network calls, allowing users to set a proxy URL for operations. - **Dependencies** - Updated dependencies to include `global-agent` and `pnpm`. - Added type definitions for `global-agent`. - **Configuration** - Expanded TypeScript configuration to include additional type roots. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-15 19:16:49 -05:00
yindo closed this issue 2026-02-15 19:16:49 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: run-llama/create-llama#232