-
Notifications
You must be signed in to change notification settings - Fork 181
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix cohere link #994
Fix cohere link #994
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,15 +56,10 @@ print(result.value) | |
|
||
Griptape offers the following Prompt Drivers for interacting with LLMs. | ||
|
||
!!! warning | ||
When overriding a default Prompt Driver, take care to ensure you've updated the Structure's configured Embedding Driver as well. If Task Memory isn't needed, you can avoid compatibility issues by setting `task_memory=None` to disable Task Memory in your Structure. | ||
|
||
### OpenAI Chat | ||
|
||
!!! info | ||
This driver uses [OpenAi function calling](https://platform.openai.com/docs/guides/function-calling) when using [Tools](../tools/index.md). You can change this to use Griptape's own tool calling implementation by setting `use_native_tools` to `False`. | ||
|
||
The [OpenAiChatPromptDriver](../../reference/griptape/drivers/prompt/openai_chat_prompt_driver.md) connects to the [OpenAI Chat](https://platform.openai.com/docs/guides/chat) API. | ||
This driver uses [OpenAi function calling](https://platform.openai.com/docs/guides/function-calling) when using [Tools](../tools/index.md). | ||
Comment on lines
-64
to
+62
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does tools/index.md call out There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It does now, take another gander |
||
|
||
```python | ||
import os | ||
|
@@ -126,10 +121,8 @@ agent.run("How do I init and update a git submodule?") | |
|
||
### Azure OpenAI Chat | ||
|
||
!!! info | ||
This driver uses [Azure OpenAi function calling](https://learn.microsoft.com/en-us/azure/ai-services/openai/how-to/function-calling) when using [Tools](../tools/index.md). You can change this to use Griptape's own tool calling implementation by setting `use_native_tools` to `False`. | ||
|
||
The [AzureOpenAiChatPromptDriver](../../reference/griptape/drivers/prompt/azure_openai_chat_prompt_driver.md) connects to Azure OpenAI [Chat Completion](https://learn.microsoft.com/en-us/azure/cognitive-services/openai/reference) APIs. | ||
This driver uses [Azure OpenAi function calling](https://learn.microsoft.com/en-us/azure/ai-services/openai/how-to/function-calling) when using [Tools](../tools/index.md). | ||
|
||
```python | ||
import os | ||
|
@@ -160,14 +153,12 @@ agent.run("Artificial intelligence is a technology with great promise.") | |
|
||
### Cohere | ||
|
||
The [CoherePromptDriver](../../reference/griptape/drivers/prompt/cohere_prompt_driver.md) connects to the Cohere [Generate](https://docs.cohere.ai/reference/generate) API. | ||
The [CoherePromptDriver](../../reference/griptape/drivers/prompt/cohere_prompt_driver.md) connects to the Cohere [Chat](https://docs.cohere.com/docs/chat-api) API. | ||
Comment on lines
-163
to
+156
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There it is ✅ |
||
This driver uses [Cohere tool use](https://docs.cohere.com/docs/tools) when using [Tools](../tools/index.md). | ||
|
||
!!! info | ||
This driver requires the `drivers-prompt-cohere` [extra](../index.md#extras). | ||
|
||
!!! info | ||
This driver uses [Cohere tool use](https://docs.cohere.com/docs/tools) when using [Tools](../tools/index.md). You can change this to use Griptape's own tool calling implementation by setting `use_native_tools` to `False`. | ||
|
||
```python | ||
import os | ||
from griptape.structures import Agent | ||
|
@@ -191,10 +182,8 @@ agent.run('What is the sentiment of this review? Review: "I really enjoyed this | |
!!! info | ||
This driver requires the `drivers-prompt-anthropic` [extra](../index.md#extras). | ||
|
||
!!! info | ||
This driver uses [Anthropic tool use](https://docs.anthropic.com/en/docs/build-with-claude/tool-use) when using [Tools](../tools/index.md). You can change this to use Griptape's own tool calling implementation by setting `use_native_tools` to `False`. | ||
|
||
The [AnthropicPromptDriver](../../reference/griptape/drivers/prompt/anthropic_prompt_driver.md) connects to the Anthropic [Messages](https://docs.anthropic.com/claude/reference/messages_post) API. | ||
This driver uses [Anthropic tool use](https://docs.anthropic.com/en/docs/build-with-claude/tool-use) when using [Tools](../tools/index.md). | ||
|
||
```python | ||
import os | ||
|
@@ -219,10 +208,8 @@ agent.run('Where is the best place to see cherry blossums in Japan?') | |
!!! info | ||
This driver requires the `drivers-prompt-google` [extra](../index.md#extras). | ||
|
||
!!! info | ||
This driver uses [Gemini function calling](https://ai.google.dev/gemini-api/docs/function-calling) when using [Tools](../tools/index.md). You can change this to use Griptape's own tool calling implementation by setting `use_native_tools` to `False`. | ||
|
||
The [GooglePromptDriver](../../reference/griptape/drivers/prompt/google_prompt_driver.md) connects to the [Google Generative AI](https://ai.google.dev/tutorials/python_quickstart#generate_text_from_text_inputs) API. | ||
This driver uses [Gemini function calling](https://ai.google.dev/gemini-api/docs/function-calling) when using [Tools](../tools/index.md). | ||
|
||
```python | ||
import os | ||
|
@@ -247,10 +234,8 @@ agent.run('Briefly explain how a computer works to a young child.') | |
!!! info | ||
This driver requires the `drivers-prompt-amazon-bedrock` [extra](../index.md#extras). | ||
|
||
!!! info | ||
This drivers uses [Bedrock tool use](https://docs.aws.amazon.com/bedrock/latest/userguide/tool-use.html) when using [Tools](../tools/index.md). You can change this to use Griptape's own tool calling implementation by setting `use_native_tools` to `False`. | ||
|
||
The [AmazonBedrockPromptDriver](../../reference/griptape/drivers/prompt/amazon_bedrock_prompt_driver.md) uses [Amazon Bedrock](https://aws.amazon.com/bedrock/)'s [Converse API](https://docs.aws.amazon.com/bedrock/latest/userguide/conversation-inference.html). | ||
This driver uses [Bedrock tool use](https://docs.aws.amazon.com/bedrock/latest/userguide/tool-use.html) when using [Tools](../tools/index.md). | ||
|
||
All models supported by the Converse API are available for use with this driver. | ||
|
||
|
@@ -316,7 +301,6 @@ agent.run("What color is the sky at different times of the day?") | |
|
||
The [HuggingFaceHubPromptDriver](../../reference/griptape/drivers/prompt/huggingface_hub_prompt_driver.md) connects to the [Hugging Face Hub API](https://huggingface.co/docs/hub/api). | ||
|
||
|
||
!!! warning | ||
Not all models featured on the Hugging Face Hub are supported by this driver. Models that are not supported by | ||
[Hugging Face serverless inference](https://huggingface.co/docs/api-inference/en/index) will not work with this driver. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was more of an issue when
off_prompt
defaulted toTrue