Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Doc]: How can I set the date_string for the chat templates #14344

Open
1 task done
FelixNeutatzMainWebSolutions opened this issue Mar 6, 2025 · 0 comments
Open
1 task done
Labels
documentation Improvements or additions to documentation

Comments

@FelixNeutatzMainWebSolutions

📚 The doc issue

Hello everyone,

I use the chat_template like this, similar to tool_chat_template_llama3.1_json.jinja:

{%- if not date_string is defined %}
    {%- set date_string = "26 Jul 2024" %}
{%- endif %}

and I call the model like this:

client.chat.completions.create(
            messages=messages,
            model=model,
            temperature=0.0,
            max_completion_tokens=300,
            stream=True,
            tools=tools,
            tool_choice=tool_choice
        )

So, now my question: How can I set the date_string variable?

Thank you for your help.

Best regards,
Felix

Suggest a potential alternative/fix

No response

Before submitting a new issue...

  • Make sure you already searched for relevant issues, and asked the chatbot living at the bottom right corner of the documentation page, which can answer lots of frequently asked questions.
@FelixNeutatzMainWebSolutions FelixNeutatzMainWebSolutions added the documentation Improvements or additions to documentation label Mar 6, 2025
@FelixNeutatzMainWebSolutions FelixNeutatzMainWebSolutions changed the title [Doc]: How can I set the da [Doc]: How can I set the date_string for the chat templates Mar 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant