Skip to content

Commit

Permalink
chore(pages): update supported file types and anthropic models
Browse files Browse the repository at this point in the history
Added support for Markdown files in file upload options. Updated Claude 3.5 Sonnet model version to "claude-3-5-sonnet-20240620" while commenting out the Claude Opus model entries.
  • Loading branch information
Daethyra committed Jul 5, 2024
1 parent 15af044 commit 735fc8c
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 20 deletions.
18 changes: 9 additions & 9 deletions freestream/pages/1_💬_Curie.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,20 +100,20 @@
streaming=True,
max_tokens=4096,
),
"Claude: Sonnet": ChatAnthropic(
model="claude-3-sonnet-20240229",
anthropic_api_key=anthropic_api_key,
temperature=temperature_slider,
streaming=True,
max_tokens=4096,
),
"Claude: Opus": ChatAnthropic(
model="claude-3-opus-20240229",
"Claude 3.5: Sonnet": ChatAnthropic(
model="claude-3-5-sonnet-20240620",
anthropic_api_key=anthropic_api_key,
temperature=temperature_slider,
streaming=True,
max_tokens=4096,
),
# "Claude: Opus": ChatAnthropic(
# model="claude-3-opus-20240229",
# anthropic_api_key=anthropic_api_key,
# temperature=temperature_slider,
# streaming=True,
# max_tokens=4096,
# ),
}

# Master dictionary
Expand Down
20 changes: 10 additions & 10 deletions freestream/pages/2_🤖_RAGbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
# Add file-upload button
uploaded_files = st.sidebar.file_uploader(
label="Upload a PDF or text file",
type=["pdf", "doc", "docx", "txt"],
type=["pdf", "doc", "docx", "txt", "md"],
help="Types supported: pdf, doc, docx, txt \n\nConsider the size of your files before you upload. Processing speed varies by server load.",
accept_multiple_files=True,
)
Expand Down Expand Up @@ -112,20 +112,20 @@
streaming=True,
max_tokens=4096,
),
"Claude: Sonnet": ChatAnthropic(
model="claude-3-sonnet-20240229",
anthropic_api_key=anthropic_api_key,
temperature=temperature_slider,
streaming=True,
max_tokens=4096,
),
"Claude: Opus": ChatAnthropic(
model="claude-3-opus-20240229",
"Claude 3.5: Sonnet": ChatAnthropic(
model="claude-3-5-sonnet-20240620",
anthropic_api_key=anthropic_api_key,
temperature=temperature_slider,
streaming=True,
max_tokens=4096,
),
# "Claude: Opus": ChatAnthropic(
# model="claude-3-opus-20240229",
# anthropic_api_key=anthropic_api_key,
# temperature=temperature_slider,
# streaming=True,
# max_tokens=4096,
# ),
}

# Master dictionary
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[tool.poetry]

name = "FreeStream"
version = "4.4.0"
version = "4.4.1"
description = "Template repository for building chatbots."
authors = ["Daethyra <[email protected]>"]
readme = "README.md"
Expand Down

0 comments on commit 735fc8c

Please sign in to comment.