Skip to content

Commit

Permalink
Make format + new release
Browse files Browse the repository at this point in the history
  • Loading branch information
italianconcerto committed Dec 15, 2023
1 parent eaee7f9 commit ccfed15
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/examples/function_calling.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"import openai\n",
"from semantic_router.utils.logger import logger\n",
"\n",
"\n",
"# Docs # https://platform.openai.com/docs/guides/function-calling\n",
"def llm_openai(prompt: str, model: str = \"gpt-4\") -> str:\n",
" try:\n",
Expand Down Expand Up @@ -58,7 +59,7 @@
"import requests\n",
"\n",
"# Docs https://huggingface.co/docs/transformers/main_classes/text_generation\n",
"HF_API_TOKEN = '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'#os.getenv[\"HF_API_TOKEN\"]\n",
"HF_API_TOKEN = \"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\" # os.getenv[\"HF_API_TOKEN\"]\n",
"\n",
"\n",
"def llm_mistral(prompt: str) -> str:\n",
Expand Down Expand Up @@ -359,7 +360,6 @@
}
],
"source": [
"\n",
"def get_time(location: str) -> str:\n",
" \"\"\"Useful to get the time in a specific location\"\"\"\n",
" print(f\"Calling `get_time` function with location: {location}\")\n",
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "semantic-router"
version = "0.0.9"
version = "0.0.10"
description = "Super fast semantic router for AI decision making"
authors = [
"James Briggs <[email protected]>",
Expand Down
1 change: 1 addition & 0 deletions semantic_router/encoders/openai.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import openai
from openai import OpenAIError
from openai.types import CreateEmbeddingResponse

from semantic_router.encoders import BaseEncoder
from semantic_router.utils.logger import logger

Expand Down

0 comments on commit ccfed15

Please sign in to comment.