Skip to content

Commit

Permalink
fix: turn off deprecated correction by default (#196)
Browse files Browse the repository at this point in the history
* mention Claude in docs

* switch correction default off
  • Loading branch information
slobentanzer authored Aug 15, 2024
1 parent 6ce439a commit 1d76199
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 7 deletions.
14 changes: 7 additions & 7 deletions biochatter/llm_connect.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def __init__(
self,
model_name: str,
prompts: dict,
correct: bool = True,
correct: bool = False,
split_correction: bool = False,
use_ragagent_selector: bool = False,
):
Expand Down Expand Up @@ -458,7 +458,7 @@ def __init__(
self,
model_name: str,
prompts: dict,
correct: bool = True,
correct: bool = False,
split_correction: bool = False,
):
"""
Expand Down Expand Up @@ -523,7 +523,7 @@ def __init__(
base_url: str,
prompts: dict,
model_name: str = "auto",
correct: bool = True,
correct: bool = False,
split_correction: bool = False,
):
"""
Expand Down Expand Up @@ -891,7 +891,7 @@ def __init__(
base_url: str,
prompts: dict,
model_name: str = "llama3",
correct: bool = True,
correct: bool = False,
split_correction: bool = False,
):
"""
Expand Down Expand Up @@ -1095,7 +1095,7 @@ def __init__(
self,
model_name: str,
prompts: dict,
correct: bool = True,
correct: bool = False,
split_correction: bool = False,
):
"""
Expand Down Expand Up @@ -1317,7 +1317,7 @@ def __init__(
self,
model_name: str,
prompts: dict,
correct: bool = True,
correct: bool = False,
split_correction: bool = False,
):
"""
Expand Down Expand Up @@ -1478,7 +1478,7 @@ def __init__(
deployment_name: str,
model_name: str,
prompts: dict,
correct: bool = True,
correct: bool = False,
split_correction: bool = False,
version: Optional[str] = None,
base_url: Optional[str] = None,
Expand Down
14 changes: 14 additions & 0 deletions docs/features/chat.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,20 @@ designate the `OPENAI_API_KEY` variable in your environment directly (`export
OPENAI_API_KEY=sk-...`) by adding it to your shell configuration (e.g., the
`zshrc`).

## Using Anthropic models (Claude)

Similarly, to use an Anthropic model, you need a billable account with Anthropic
API access, and to set the `ANTHROPIC_API_KEY` variable in your environment.

```python
from biochatter.llm_connect import AnthropicConversation

conversation = AnthropicConversation(
model_name="claude-3-5-sonnet-20240620",
prompts={},
)
```

## Multimodal models - Text and image

We support multimodal queries in models that offer these capabilities after the
Expand Down

0 comments on commit 1d76199

Please sign in to comment.