diff options
author | Bagus Indrayana <bagusindrayanaindo@gmail.com> | 2023-08-17 15:30:52 +0200 |
---|---|---|
committer | Bagus Indrayana <bagusindrayanaindo@gmail.com> | 2023-08-17 15:30:52 +0200 |
commit | 74ecdee78466104e57eb7488e682b564988fcd88 (patch) | |
tree | bbc764ba3248e80f20dde55e5b382b3f3d382575 /g4f/.v1/gpt4free/gptworldAi/README.md | |
parent | add proxy and remove stream (diff) | |
parent | ~ (diff) | |
download | gpt4free-74ecdee78466104e57eb7488e682b564988fcd88.tar gpt4free-74ecdee78466104e57eb7488e682b564988fcd88.tar.gz gpt4free-74ecdee78466104e57eb7488e682b564988fcd88.tar.bz2 gpt4free-74ecdee78466104e57eb7488e682b564988fcd88.tar.lz gpt4free-74ecdee78466104e57eb7488e682b564988fcd88.tar.xz gpt4free-74ecdee78466104e57eb7488e682b564988fcd88.tar.zst gpt4free-74ecdee78466104e57eb7488e682b564988fcd88.zip |
Diffstat (limited to 'g4f/.v1/gpt4free/gptworldAi/README.md')
-rw-r--r-- | g4f/.v1/gpt4free/gptworldAi/README.md | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/g4f/.v1/gpt4free/gptworldAi/README.md b/g4f/.v1/gpt4free/gptworldAi/README.md deleted file mode 100644 index a6b07f86..00000000 --- a/g4f/.v1/gpt4free/gptworldAi/README.md +++ /dev/null @@ -1,25 +0,0 @@ -# gptworldAi -Written by [hp_mzx](https://github.com/hpsj). - -## Examples: -### Completion: -```python -for chunk in gptworldAi.Completion.create("你是谁", "127.0.0.1:7890"): - print(chunk, end="", flush=True) - print() -``` - -### Chat Completion: -Support context -```python -message = [] -while True: - prompt = input("请输入问题:") - message.append({"role": "user","content": prompt}) - text = "" - for chunk in gptworldAi.ChatCompletion.create(message,'127.0.0.1:7890'): - text = text+chunk - print(chunk, end="", flush=True) - print() - message.append({"role": "assistant", "content": text}) -```
\ No newline at end of file |