Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Commit

Permalink
update synthesizer project id
Browse files Browse the repository at this point in the history
  • Loading branch information
emrgnt-cmplxty committed Dec 21, 2023
1 parent 3186f79 commit 11422a0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 21 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ authors = ["Owen Colegrove <[email protected]>"]
license = "Apache-2.0"
readme = "README.md"
name = 'sciphi-synthesizer'
version = '1.0.2'
version = '1.0.3'
packages = [
{ include = "synthesizer" }
]
Expand Down
19 changes: 3 additions & 16 deletions synthesizer/interface/llm/sciphi_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ class SciPhiLLMInterface(LLMInterface):
"""A class to interface with the SciPhi API."""

provider_name = LLMProviderName.SCIPHI
system_message = "You are a helpful assistant."

def __init__(
self,
Expand All @@ -32,21 +31,9 @@ def get_completion(
logger.debug(
f"Getting completion from SciPhi API for model={generation_config.model_name}"
)
if "instruct" in generation_config.model_name:
return self.model.get_instruct_completion(
prompt, generation_config
)
else:
return self._model.get_chat_completion(
[
{
"role": "system",
"content": SciPhiLLMInterface.system_message,
},
{"role": "user", "content": prompt},
],
generation_config,
)
return self.model.get_instruct_completion(
prompt, generation_config
)

def get_chat_completion(
self, conversation: list[dict], generation_config: GenerationConfig
Expand Down
4 changes: 0 additions & 4 deletions synthesizer/llm/config_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@ def get_config_for_provider(
llm_provider_name: LLMProviderName,
) -> Type[LLMConfig]:
"""Get the configuration class for a given model."""
print(
"LLMConfigManager.config_registry = ",
LLMConfigManager.config_registry,
)
config_class = LLMConfigManager.config_registry.get(llm_provider_name)

if not config_class:
Expand Down

0 comments on commit 11422a0

Please sign in to comment.