Skip to content

Conversation

sigoden
Copy link
Owner

@sigoden sigoden commented Nov 5, 2024

Add configuration item

user_agent: auto

Use environment variable

AICHAT_USER_AGENT=auto aichat

close #966

@sigoden sigoden changed the title feat: add user-agent configuration feat: add config user_agent Nov 5, 2024
@sigoden sigoden merged commit 35ee277 into main Nov 5, 2024
3 checks passed
@sigoden sigoden deleted the feat branch November 5, 2024 22:46
@@ -82,6 +82,7 @@ right_prompt:

# ---- misc ----
serve_addr: 127.0.0.1:8000 # Default serve listening address
use_agent: null # Set Use-Agent HTTP header, use `auto` for aichat/<current-version>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should probably be user_agent and similar in the comment Set User-Agent HTTP header.

@sigoden
Copy link
Owner Author

sigoden commented Nov 5, 2024

solved by 883dfc5

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.

User-Agent http header not used
2 participants