Skip to content

Commit 301a75b

Browse files
committed
new version release
1 parent 502e16b commit 301a75b

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ pip install flat-ai
1212

1313
Best and fastest way, is to get your teeth to it:
1414

15-
[Tutorial Jupyter Notebook](/tutorial.ipynb)
15+
[Tutorial Jupyter Notebook](https://colab.research.google.com/drive/1dK5bzsFy1BtwhQgw9cFmRtqrcJyNeSi4?usp=sharing)
1616

1717
# Features
1818

@@ -184,8 +184,7 @@ for chunk in llm.get_stream('what is the subject of the email?', email=email):
184184

185185
## OpenAI API based
186186

187-
As you are just about to see, this tiny library is designed to talk to LLMs that are served through an OpenAI API compatible endpoint (as they all should).
188-
But, scare yourself not when you read the words OpenAI. Because, you will still be able to play with all kinds of models and providers - OpenAI or not - using the same API ([Ollama](https://ollama.com/blog/openai-compatibility) as seen below, [Groq](https://console.groq.com/docs/openai), etc). Because, Most of them have OpenAI API compatible endpoints.
187+
This library uses the OpenAI API format, which means it works with OpenAI and any other model and providers like Ollama, TogetherAI, Groq, etc that support the same API format. So you can use any model from any provider that has OpenAI-compatible endpoints.
189188

190189
```python
191190
import openai

flat_ai/__about__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
__title__ = 'flat-ai'
22
__package_name__ = 'flat_ai'
3-
__version__ = '0.1.0'
3+
__version__ = '0.2.0'
44
__description__ = 'F.L.A.T. (Frameworkless LLM Agent Thing) for building AI Agents'
55
__email__ = 'hello@mindsdb.com'
66
__author__ = 'Yours truly Jorge Torres and an LLM'

tutorial.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,15 @@
4646
"from flat_ai import FlatAI, configure_logging\n",
4747
"from typing import List\n",
4848
"from pydantic import BaseModel\n",
49-
"#configure_logging('trace.logs') -- enable this and you can to tail -f trace.logs, and see everything happening with the llm calls\n",
49+
"#configure_logging('trace.logs') # -- enable this and you can to tail -f trace.logs, and see everything happening with the llm calls\n",
5050
"\n",
5151
"# Create client - we're using Together.ai, but feel free to use your favorite LLM provider\n",
5252
"client = openai.OpenAI(\n",
5353
" api_key=<YOUR API KEY>, \n",
5454
" base_url = 'https://api.together.xyz/v1' # you can comment this if you are using OpenAI directly\n",
5555
")\n",
5656
"\n",
57-
"# we will be using a llama3.1 model here\n",
57+
"# we will be using a llama3.1 model here, \n",
5858
"llm = FlatAI(client=client, model='meta-llama/Meta-Llama-3.1-70B-Instruct-Turbo')\n",
5959
"\n",
6060
"\n",

0 commit comments

Comments
 (0)