
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
github.com/3dsinteractive/langchaingo/examples/openai-completion-example-with-http-debugging
Hello there! 👋 This example demonstrates how to use the LangChain Go library to generate text completions using OpenAI's language model, with the added feature of HTTP request and response debugging.
This nifty little program does the following:
go run openai_completion_example.go
-debug-http=false
flag:
go run openai_completion_example.go -debug-http=false
When you run the program, it will generate a completion for the prompt "The first man to walk on the moon". The result will be printed to the console.
If HTTP debugging is enabled (which it is by default), you'll also see detailed logs of the HTTP requests and responses made to the OpenAI API.
Happy exploring! 🚀🌙
FAQs
Unknown package
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.