> For the complete documentation index, see [llms.txt](https://red-3.gitbook.io/freegptfix/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://red-3.gitbook.io/freegptfix/client/gpt3.md).

# gpt3

GPT-3, or Generative Pre-trained Transformer 3, is a language model developed by OpenAI. It was released in June 2020 and represents the third generation of the GPT model.

<details>

<summary>Example</summary>

```python
from freeGPTFix import Client
resp = Client.create_completion("gpt3", "Your text")
print(resp)
```

</details>

<details>

<summary>GPT3</summary>

```python
def create(self, prompt):
	try:
		resp = post(
			url="https://api.binjie.fun/api/generateStream",
				headers=GPT3_HEADERS,
				json={
					"prompt": prompt,
					"withoutContext": True,
					"stream": False,
				},
			)
			resp.encoding = "utf-8"
		return resp.text
	except RequestException as exc:
		raise RequestException("Unable to fetch the response.") from exc
```

</details>
