From 54950690e8f9a34c33e58a788938df61781b870e Mon Sep 17 00:00:00 2001 From: Ty Dunn Date: Mon, 2 Oct 2023 12:18:47 -0700 Subject: palm api docs --- .../src/continuedev/models/reference/test.py | 1 + docs/docs/customization/models.md | 1 + docs/docs/reference/Models/googlepalmapi.md | 41 ++++++++++++++++++++++ 3 files changed, 43 insertions(+) create mode 100644 docs/docs/reference/Models/googlepalmapi.md diff --git a/continuedev/src/continuedev/models/reference/test.py b/continuedev/src/continuedev/models/reference/test.py index 87f01ede..0ab9ba85 100644 --- a/continuedev/src/continuedev/models/reference/test.py +++ b/continuedev/src/continuedev/models/reference/test.py @@ -15,6 +15,7 @@ LLM_MODULES = [ ("hf_inference_api", "HuggingFaceInferenceAPI"), ("hf_tgi", "HuggingFaceTGI"), ("openai_free_trial", "OpenAIFreeTrial"), + ("google_palm_api", "GooglePaLMAPI"), ("queued", "QueuedLLM"), ] diff --git a/docs/docs/customization/models.md b/docs/docs/customization/models.md index 7c5caee7..9d882fcb 100644 --- a/docs/docs/customization/models.md +++ b/docs/docs/customization/models.md @@ -7,6 +7,7 @@ Commercial Models - [OpenAIFreeTrial](../reference/Models/openaifreetrial.md) (default) - Use gpt-4 or gpt-3.5-turbo free with our API key, or with your API key. gpt-4 is probably the most capable model of all options. - [OpenAI](../reference/Models/openai.md) - Use any OpenAI model with your own key. Can also change the base URL if you have a server that uses the OpenAI API format, including using the Azure OpenAI service, LocalAI, etc. - [AnthropicLLM](../reference/Models/anthropicllm.md) - Use claude-2 with your Anthropic API key. Claude 2 is also highly capable, and has a 100,000 token context window. +- [GooglePaLMAP](../reference/Models/googlepalmapi.md) - Try out the `chat-bison-001` model, which is currently in public preview, after creating an API key in [Google MakerSuite](https://makersuite.google.com/u/2/app/apikey) Local Models diff --git a/docs/docs/reference/Models/googlepalmapi.md b/docs/docs/reference/Models/googlepalmapi.md new file mode 100644 index 00000000..74bec3f3 --- /dev/null +++ b/docs/docs/reference/Models/googlepalmapi.md @@ -0,0 +1,41 @@ +import ClassPropertyRef from '@site/src/components/ClassPropertyRef.tsx'; + +# GooglePaLMAPI + +The Google PaLM API is currently in public preview, so production applications are not supported yet. However, you can [create an API key in Google MakerSuite](https://makersuite.google.com/u/2/app/apikey) and begin trying out the `chat-bison-001` model. Change `~/.continue/config.py` to look like this: + +```python +from continuedev.src.continuedev.core.models import Models +from continuedev.src.continuedev.libs.llm.hf_inference_api import GooglePaLMAPI + +config = ContinueConfig( + ... + models=Models( + default=GooglePaLMAPI( + model="chat-bison-001" + api_key="", + ) +) +``` + +[View the source](https://github.com/continuedev/continue/tree/main/continuedev/src/continuedev/libs/llm/google_palm_api.py) + +## Properties + + + +### Inherited Properties + + + + + + + + + + + + + + -- cgit v1.2.3-70-g09d2