tmc / langchaingo

LangChain for Go, the easiest way to write LLM-based programs in Go
https://tmc.github.io/langchaingo/
MIT License
5k stars 643 forks source link

Add perplexity completion example #977

Closed sklinkert closed 2 months ago

sklinkert commented 3 months ago

This PR adds an example for using the perplexity API. The API is OpenAI client-compatible.

PR Checklist

sklinkert commented 2 months ago

@tmc can you please merge this? pretty straight-forward PR :)

let me know if something is missing!