返回提交历史
Modified
README.md
+13
-3
Added
testing/ora_gpt4_proof.py
+24
-0
Renamed
unfinished/ora_test.py
+0
-0
XFEstudio/gpt4free
best models (gpt4/3.5/search)
a67ffd8d
代码差异
3 个文件
+37
-3
@@ -45,10 +45,20 @@ These sites will be reverse engineered but need account access:
45
45
| [bard.google.com](https://bard.google.com) | custom / search|
46
46
| [bing.com/chat](https://bing.com/chat) | gpt-4/3.5 |
47
47
48
## Usage Examples <a name="usage-examples"></a>
48
## Best sites
49
#### gpt-4
50
- [`ora`](./ora/README.md)
51
- here is proof / test: [`ora`](./testing/ora_gpt4_proof.py)
52
- why ?, no streaming compared to poe.com but u can send more than 1 message
53
54
#### gpt-3.5
55
- [`sqlchat`](./sqlchat/README.md)
56
- why ? (streaming + you can give conversation history)
57
58
#### search
59
- [`phind`](./phind/README.md)
60
- why ? its not sure if they use gpt, but rather claude but they have an amazing search and good reasonning model
49
61
50
| NOTE: the instructions of each module has been moved in the folder of the module itsself|
51
| --- |
52
62
53
63
## Dependencies
54
64
@@ -0,0 +1,24 @@
1
import ora
2
3
complex_question = '''
4
James is talking to two people, his father, and his friend.
5
6
Douglas asks him, "What did you do today James?"
7
James replies, "I went on a fishing trip."
8
Josh then asks, "Did you catch anything?"
9
James replies, "Yes, I caught a couple of nice rainbow trout. It was a lot of fun."
10
Josh replies, "Good job son, tell your mother we should eat them tonight, she'll be very happy."
11
Douglas then says, "I wish my family would eat fish tonight, my father is making pancakes."
12
13
Question: Who is James' father?
14
'''
15
16
# right answer is josh
17
18
model = ora.CompletionModel.load('b8b12eaa-5d47-44d3-92a6-4d706f2bcacf', 'gpt-4')
19
# init conversation (will give you a conversationId)
20
init = ora.Completion.create(
21
model = model,
22
prompt = complex_question)
23
24
print(init.completion.choices[0].text) # James' father is Josh.
此文件没有可显示的逐行差异。