Skip to content

Commit

Permalink
[Fireworks] Updates to Default model and support for function calling (
Browse files Browse the repository at this point in the history
…#15046)

* Adding support for Llama 3 and Mixtral 22B

* Changes to default model, adding support for Firefunction v2

* Fixing merge conflict
  • Loading branch information
aravindputrevu authored Jul 30, 2024
1 parent 0a4596d commit d3abf78
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from llama_index.llms.openai import OpenAI

DEFAULT_API_BASE = "https://api.fireworks.ai/inference/v1"
DEFAULT_MODEL = "accounts/fireworks/models/mixtral-8x7b-instruct"
DEFAULT_MODEL = "accounts/fireworks/models/llama-v3p1-8b-instruct"


class Fireworks(OpenAI):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,15 @@
"accounts/fireworks/models/mixtral-8x22b-instruct": 65536,
}

FUNCTION_CALLING_MODELS = {
"accounts/fireworks/models/firefunction-v2": 8192,
}


ALL_AVAILABLE_MODELS = {
**LLAMA_MODELS,
**MISTRAL_MODELS,
**FUNCTION_CALLING_MODELS,
}

DISCONTINUED_MODELS: Dict[str, int] = {}
Expand Down

0 comments on commit d3abf78

Please sign in to comment.