posit-dev / posit-dev/pointblank
Add support for Databricks-hosted model in Draft Validation
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 490
- Forks
- 32
- Avg merge
- 14h 24m
- Merged PRs (30d)
- 2
Description
Proposal
chatlas supports OpenAI compatible model providers (such as Databricks) but this is not an option for the DraftValidation class. The environment variable for OPENAI_BASE_URL is not used when calling chatlas.
chat = ChatOpenAI( # pragma: no cover
model=model_name,
system_prompt="You are a terse assistant and a Python expert.",
api_key=self.api_key,
kwargs={"http_client": http_client},
)
Since ChatOpenAI supports a base_url argument this should be a simple feature to add.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the DraftValidation class and its ChatOpenAI call shown in the issue, then check how chatlas reads OPENAI_BASE_URL. Pass the supported base URL through the model setup and verify that Draft Validation can use a Databricks-hosted OpenAI-compatible model.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100