Skip to content

Conversation

@asafgardin
Copy link
Contributor

No description provided.

@Asaf-m
Copy link

Asaf-m commented Mar 25, 2024

@asafgardin Just a reminder that the name won't be gaia. I'm still waiting for Omri to say whether it's going to be "jamba" / "jamba-small" or something else...

from ai21.models import RoleType
from ai21.models.chat import ChatMessage

system = "You're a support engineer in a SaaS company"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this file be nested under chat/completions?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I put it under examples/chat/chat_completions.py

@@ -0,0 +1,12 @@
from dataclasses import dataclass

from ai21.models import RoleType
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe role type should be under chat and exported in models? This ways users won't need to guess where to import it from

@@ -0,0 +1,5 @@
from __future__ import annotations

from .chat_message import ChatMessage as ChatMessage
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do you need these aliases?

Copy link
Contributor Author

@asafgardin asafgardin Mar 25, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ruff was removing imports that weren't in the main __init__.py saying these imports were not used, where in-fact they were. This was a workaround I saw was used.

I found a better solution to configure ruff to not removed these types of imports from any __init__.py (see pyproject.yaml

pyproject.toml Outdated
[tool.ruff]
line-length = 120
[tool.ruff.per-file-ignores]
"__init__.py" = ["F401"]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what's that?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Look at this comment - #84 (comment)

@Josephasafg Josephasafg merged commit 428ad98 into rc_sdk_alignments Mar 26, 2024
@Josephasafg Josephasafg deleted the feat_chat_completion_support branch March 26, 2024 15:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants