mirror of
https://github.com/run-llama/create-llama.git
synced 2026-07-13 21:01:55 -04:00
[PR #76] [MERGED] Proxy support added via global agent #232
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 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:
main← Head:feature/proxy-support📝 Commits (8)
e19b768Proxy support added via global agenta13752cUpdate .changeset/tame-crews-trade.md6c36ae8PR feedback incorportedc17f466Update .changeset/tame-crews-trade.mdb7e51dcMerge branch 'main' into feature/proxy-support87c376bFormatted code as per the guidelines98dcd1eMerge branch 'run-llama:main' into feature/proxy-support67919eaMerge 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
Dependencies
global-agentandpnpm.global-agent.Configuration
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.