Skip to content

Commit

Permalink
[ Add ] mentioned that the tools calls is implmented in openai
Browse files Browse the repository at this point in the history
  • Loading branch information
anasfik committed Nov 13, 2023
1 parent 4d435e6 commit e56666b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ Consider helping this project you too.
- [x] With `Stream` responses.
- [x] [Chat (chatGPT)](#chat-chatgpt)
- [x] With `Stream` responses.
- [x] [Tools](#tools-new-implementation-of-functions-calling)
- [x] [Edits](#edits)
- [x] [Images](#images)
- [x] [Embeddings](#embeddings)
Expand Down Expand Up @@ -435,7 +436,7 @@ You can access the results in the `paramters` field of the `function_call` field
FunctionCallResponse? response = chatCompletion.choices.first.message.functionCall;
String? functionName = response?.name;
Map<String, dynamic>? functionParameters = response?.parameters;
```
```e
## Edits
Expand Down
8 changes: 4 additions & 4 deletions example/lib/chat_completion_example.dart
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ void main() async {
tools: [/* tools if you have any */],
);

print(chatCompletion.choices.first.message); // ...
print(chatCompletion.systemFingerprint); // ...
print(chatCompletion.usage.promptTokens); // ...
print(chatCompletion.id); // ...
print(chatCompletion.choices.first.message); //
print(chatCompletion.systemFingerprint); //
print(chatCompletion.usage.promptTokens); //
print(chatCompletion.id); //
}

0 comments on commit e56666b

Please sign in to comment.