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

fix(deps): update all non-major dependencies #1335

Merged
merged 1 commit into from
Dec 10, 2024

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Dec 2, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
buf.build/gen/go/interplex-ai/schemas/grpc/go v1.5.1-20241021105030-466c70d726a9.1 -> v1.5.1-20241117203254-a91193b62179.1 age adoption passing confidence
buf.build/gen/go/interplex-ai/schemas/protocolbuffers/go v1.35.1-20241021105030-466c70d726a9.1 -> v1.35.2-20241117203254-a91193b62179.1 age adoption passing confidence
cloud.google.com/go/storage v1.47.0 -> v1.48.0 age adoption passing confidence
github.com/docker/docker v27.3.1+incompatible -> v27.4.0+incompatible age adoption passing confidence
github.com/google/generative-ai-go v0.18.0 -> v0.19.0 age adoption passing confidence
github.com/magiconair/properties v1.8.7 -> v1.8.9 age adoption passing confidence
github.com/ollama/ollama v0.4.7 -> v0.5.1 age adoption passing confidence
golang.org/x/net v0.31.0 -> v0.32.0 age adoption passing confidence
golang.org/x/term v0.26.0 -> v0.27.0 age adoption passing confidence
google.golang.org/api v0.209.0 -> v0.210.0 age adoption passing confidence
google.golang.org/grpc v1.68.0 -> v1.68.1 age adoption passing confidence
sigs.k8s.io/controller-runtime v0.19.2 -> v0.19.3 age adoption passing confidence

Release Notes

docker/docker (github.com/docker/docker)

v27.4.0+incompatible

Compare Source

google/generative-ai-go (github.com/google/generative-ai-go)

v0.19.0

Compare Source

What's Changed

New Contributors

Full Changelog: google/generative-ai-go@v0.18.0...v0.19.0

magiconair/properties (github.com/magiconair/properties)

v1.8.9

Compare Source

What's Changed

New Contributors

Full Changelog: magiconair/properties@v1.8.8...v1.8.9

v1.8.8

Compare Source

What's Changed

New Contributors

Full Changelog: magiconair/properties@v1.8.7...v1.8.8

ollama/ollama (github.com/ollama/ollama)

v0.5.1

Compare Source

What's Changed

  • Fixed issue where Ollama's API would generate JSON output when specifying "format": null
  • Fixed issue where passing --format json to ollama run would cause an error

Full Changelog: ollama/ollama@v0.5.0...v0.5.1

v0.5.0

Compare Source

New models

  • Llama 3.3: a new state of the art 70B model. Llama 3.3 70B offers similar performance compared to Llama 3.1 405B model.
  • Snowflake Arctic Embed 2: Snowflake's frontier embedding model. Arctic Embed 2.0 adds multilingual support without sacrificing English performance or scalability.

Structured outputs

Ollama now supports structured outputs, making it possible to constrain a model's output to a specific format defined by a JSON schema. The Ollama Python and JavaScript libraries have been updated to support structured outputs, together with Ollama's OpenAI-compatible API endpoints.

REST API

To use structured outputs in Ollama's generate or chat APIs, provide a JSON schema object in the format parameter:

curl -X POST http://localhost:11434/api/chat -H "Content-Type: application/json" -d '{
  "model": "llama3.1",
  "messages": [{"role": "user", "content": "Tell me about Canada."}],
  "stream": false,
  "format": {
    "type": "object",
    "properties": {
      "name": {
        "type": "string"
      },
      "capital": {
        "type": "string"
      },
      "languages": {
        "type": "array",
        "items": {
          "type": "string"
        }
      }
    },
    "required": [
      "name",
      "capital", 
      "languages"
    ]
  }
}'
Python library

Using the Ollama Python library, pass in the schema as a JSON object to the format parameter as either dict or use Pydantic (recommended) to serialize the schema using model_json_schema().

from ollama import chat
from pydantic import BaseModel

class Country(BaseModel):
  name: str
  capital: str
  languages: list[str]

response = chat(
  messages=[
    {
      'role': 'user',
      'content': 'Tell me about Canada.',
    }
  ],
  model='llama3.1',
  format=Country.model_json_schema(),
)

country = Country.model_validate_json(response.message.content)
print(country)
JavaScript library

Using the Ollama JavaScript library, pass in the schema as a JSON object to the format parameter as either object or use Zod (recommended) to serialize the schema using zodToJsonSchema():

import ollama from 'ollama';
import { z } from 'zod';
import { zodToJsonSchema } from 'zod-to-json-schema';

const Country = z.object({
    name: z.string(),
    capital: z.string(), 
    languages: z.array(z.string()),
});

const response = await ollama.chat({
    model: 'llama3.1',
    messages: [{ role: 'user', content: 'Tell me about Canada.' }],
    format: zodToJsonSchema(Country),
});

const country = Country.parse(JSON.parse(response.message.content));
console.log(country);

What's Changed

  • Fixed error importing model vocabulary files
  • Experimental: new flag to set KV cache quantization to 4-bit (q4_0), 8-bit (q8_0) or 16-bit (f16). This reduces VRAM requirements for longer context windows.
    • To enable for all models, use OLLAMA_FLASH_ATTENTION=1 OLLAMA_KV_CACHE_TYPE=q4_0 ollama serve
    • Note: in the future flash attention will be enabled by default where available, with kv cache quantization available on a per-model basis
    • Thank you @​sammcj for the contribution in in https://github.com/ollama/ollama/pull/7926

New Contributors

Full Changelog: ollama/ollama@v0.4.7...v0.5.0

googleapis/google-api-go-client (google.golang.org/api)

v0.210.0

Compare Source

Features
Bug Fixes
grpc/grpc-go (google.golang.org/grpc)

v1.68.1: Release 1.68.1

Compare Source

Bug Fixes

  • credentials/alts: avoid SRV and TXT lookups for handshaker service to work around hangs caused by buggy versions of systemd-resolved. (#​7861)

Dependencies

  • Relax minimum Go version requirement from go1.22.7 to go1.22. (#​7831)
kubernetes-sigs/controller-runtime (sigs.k8s.io/controller-runtime)

v0.19.3

Compare Source

What's Changed

Full Changelog: kubernetes-sigs/controller-runtime@v0.19.2...v0.19.3


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot requested a review from a team as a code owner December 2, 2024 13:01
@renovate renovate bot added the dependencies label Dec 2, 2024
@renovate renovate bot requested a review from a team as a code owner December 2, 2024 13:01
@renovate renovate bot added the go label Dec 2, 2024
@renovate renovate bot force-pushed the renovate/all-minor-patch branch 7 times, most recently from c9acabf to 3ec104c Compare December 4, 2024 19:14
Copy link
Contributor Author

renovate bot commented Dec 4, 2024

ℹ Artifact update notice

File name: go.mod

In order to perform the update(s) described in the table above, Renovate ran the go get command, which resulted in the following additional change(s):

  • 8 additional dependencies were updated

Details:

Package Change
cloud.google.com/go/aiplatform v1.68.0 -> v1.69.0
cloud.google.com/go/auth v0.10.2 -> v0.11.0
cloud.google.com/go/auth/oauth2adapt v0.2.5 -> v0.2.6
google.golang.org/genproto v0.0.0-20241113202542-65e8d215514f -> v0.0.0-20241118233622-e639e219e697
golang.org/x/crypto v0.29.0 -> v0.30.0
golang.org/x/sync v0.9.0 -> v0.10.0
golang.org/x/sys v0.27.0 -> v0.28.0
golang.org/x/text v0.20.0 -> v0.21.0

@renovate renovate bot force-pushed the renovate/all-minor-patch branch 4 times, most recently from 6ebf706 to a07772c Compare December 7, 2024 19:33
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
@renovate renovate bot force-pushed the renovate/all-minor-patch branch from a07772c to 3ad7a33 Compare December 9, 2024 17:25
@AlexsJones AlexsJones merged commit 8cd3b29 into main Dec 10, 2024
10 of 11 checks passed
@AlexsJones AlexsJones deleted the renovate/all-minor-patch branch December 10, 2024 09:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant