From 6c64e459b36f83aaea79579799b451337411975f Mon Sep 17 00:00:00 2001 From: "t.me/xtekky" <98614666+xtekky@users.noreply.github.com> Date: Sat, 15 Apr 2023 15:21:51 +0100 Subject: phind.com api (gpt-4 + internet) best answers --- README.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index 80e9275b..e8e1d78c 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,7 @@ This repository provides reverse-engineered language models from various sources - [Sites with Authentication (Will Reverse Engineer but Need Account Access)](#sites-with-authentication) - [Usage Examples](#usage-examples) - [`quora (poe)`](#example-poe) + - [`phind`](#example-phind) - [`t3nsor`](#example-t3nsor) - [`ora`](#example-ora) - [`writesonic`](#example-writesonic) @@ -36,6 +37,7 @@ This repository provides reverse-engineered language models from various sources | [writesonic.com](https://writesonic.com)|GPT-3.5 / Internet| | [t3nsor.com](https://t3nsor.com)|GPT-3.5| | [you.com](https://you.com)|GPT-3.5 / Internet / good search| +| [phind.com](https://phind.com)|GPT-4 / Internet / good search| ## Sites with Authentication @@ -97,6 +99,26 @@ response = quora.Completion.create(model = 'gpt-4', print(response.completion.choices[0].text) ``` +### Example: `phind` (use like openai pypi package) + +```python +# HELP WANTED: tls_client does not accept stream and timeout gets hit with long responses + +import phind + +prompt = 'hello world' + +result = phind.Completion.create( + model = 'gpt-4', + prompt = prompt, + results = phind.Search.create(prompt, actualSearch = False), # create search (set actualSearch to False to disable internet) + creative = False, + detailed = False, + codeContext = '') # up to 3000 chars of code + +print(result.completion.choices[0].text) +``` + ### Example: `t3nsor` (use like openai pypi package) ```python -- cgit v1.2.3