mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-08-02 08:44:44 +00:00
Move model_id above so warning actually works
This commit is contained in:
parent
3587f0894d
commit
aa9a9f18be
1 changed files with 1 additions and 2 deletions
|
@ -104,7 +104,7 @@ class GroqInferenceAdapter(Inference, ModelRegistryHelper):
|
|||
) -> Union[
|
||||
ChatCompletionResponse, AsyncIterator[ChatCompletionResponseStreamChunk]
|
||||
]:
|
||||
|
||||
model_id = self.get_provider_model_id(model_id)
|
||||
if model_id == "llama-3.2-3b-preview":
|
||||
warnings.warn(
|
||||
"Groq only contains a preview version for llama-3.2-3b-instruct. "
|
||||
|
@ -112,7 +112,6 @@ class GroqInferenceAdapter(Inference, ModelRegistryHelper):
|
|||
"They can be discontinued on short notice."
|
||||
)
|
||||
|
||||
model_id = self.get_provider_model_id(model_id)
|
||||
request = convert_chat_completion_request(
|
||||
request=ChatCompletionRequest(
|
||||
model=model_id,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue