Skip to content

The prompt seems not to be suited for togetherAI models #993

@racinmat

Description

@racinmat

Describe the bug

I am not able to get any reasonable input when using codellama hosted in togetherAI.

Reproduce

import os
os.environ["TOGETHERAI_API_KEY"] = "..."
from interpreter import interpreter
#interpreter.llm.model = "together_ai/togethercomputer/CodeLlama-34b-Instruct"
#interpreter.llm.model = "together_ai/codellama/CodeLlama-70b-Python-hf"
interpreter.llm.model = "together_ai/codellama/CodeLlama-70b-hf"
interpreter.llm.api_key = os.environ["TOGETHERAI_API_KEY"]
interpreter.chat("Please print hello world.")

I tried all 3 models above in jupyter notebook and the output was not properly formatted

Expected behavior

provide a code which is readable in jupyter notebook

Screenshots

image
when I try it in https://api.together.xyz/playground/chat/codellama/CodeLlama-70b-Instruct-hf
I get
image

Open Interpreter version

0.2.0

Python version

3.10.12

Operating System name and version

linux, google colab

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions