Closed Andrea-de-Varda closed 1 month ago
Hi @Andrea-de-Varda, thanks for filing this issue! We're triaging.
Hi @Andrea-de-Varda , please see https://github.com/scaleapi/llm-engine/issues/619 - we do have this feature in the code, but we're sunsetting the free demo, which is out of date with what's in Github and what we run internally.
Describe the bug The
guided_choice
option inllmengine.Completion.create()
is not respected in the API call. The response ignores the guided choices I specify, regardless of the model I'm considering, and produces its usual completion output. I installed in a clean environment.LLM Engine Version
System Version
Timestamp and Request ID
timestamp
:request_id
: ade60281-7feb-48ce-921b-d7d081e2a73dMinimal Reproducible Example Steps to reproduce the behavior:
api_engine.set_api_key("MASKED")
response = Completion.create( model="llama-2-7b", # The issues persists with all the models I tried prompt="Hello, my favourite", max_new_tokens=10, temperature=0, guided_choice=["food", "thing", "car"], )
print(response.json())
{"request_id": "ade60281-7feb-48ce-921b-d7d081e2a73d", "output": {"text": " time of the year is here again. I love", "num_prompt_tokens": null, "num_completion_tokens": 10, "tokens": null}}
A newer version (0.0.0b39) of 'scale-llm-engine' is available. Please upgrade! To upgrade, run: pip install --upgrade scale-llm-engine Don't want to see this message? Set the environment variable 'LLM_ENGINE_DISABLE_VERSION_CHECK' to 'true'.
import llmengine print(llmengine.version) # returns 0.0.0beta39